| 1 | # Railway Website: Vite + Notes API |
| 2 | |
| 3 | A Tailwind React SPA (`Railway.Website.Vite`) that reads and writes notes |
| 4 | through an Effect `Railway.Function` (canvas, no registry) persisted on |
| 5 | `Railway.Postgres`. |
| 6 | |
| 7 | Alchemy generates a Dockerfile and Railway builds it. No GHCR. |
| 8 | |
| 9 | - `alchemy deploy` builds the SPA (inlining `VITE_API_URL`) and deploys |
| 10 | Postgres + the Function + the static site. |
| 11 | - `alchemy dev` is Vite's own server (HMR included). |
| 12 | |
| 13 | ```sh |
| 14 | bun run deploy |
| 15 | ``` |
| 16 | |
| 17 | ```sh |
| 18 | bun run destroy |
| 19 | ``` |