1# Fly Website: Vite + Notes API
2
3A Tailwind React SPA (`Fly.Website.Vite`) that reads and writes notes
4through an Effect `Fly.Service`, persisted on `Fly.Postgres`.
5
6- `alchemy deploy` builds the SPA (inlining `VITE_API_URL`) and deploys
7 the API Machine + managed Postgres + the static site.
8- `alchemy dev` is Vite's own server (HMR included). The API Service
9 still deploys (Postgres is live-only).
10
11```sh
12bun run deploy
13```
14
15The SPA is at `https://{web-app}.fly.dev`. The API is at
16`https://{api-app}.fly.dev` (`GET`/`POST /notes`).
17
18```sh
19bun run destroy
20```