Add VISA backend foundation

This commit is contained in:
jerryW123
2026-06-24 22:45:34 +08:00
parent f51f64f3bd
commit e1df743eb2
17 changed files with 1999 additions and 3 deletions
+11 -2
View File
@@ -30,9 +30,15 @@ View your app in AI Studio: https://ai.studio/apps/b6ca5081-8525-4b56-8fbc-92c24
`docker compose up --build -d`
4. Open `http://localhost:8080`.
The production image copies the local `dist` directory into
The production compose stack runs two services:
- `app`: nginx serves the host-built `dist` folder on `http://localhost:8080`
- `api`: the VISA API runs on `http://localhost:4000`
nginx also proxies API calls under `http://localhost:8080/api/...` to the API
container. The frontend image copies the local `dist` directory into
`nginx:stable-alpine3.23-slim`; it does not download Node or reinstall npm
packages inside Docker.
packages inside the frontend Docker image.
**Development server (optional, downloads a Node image and dependencies):**
@@ -40,3 +46,6 @@ packages inside Docker.
2. Start the development container:
`docker compose -f docker-compose.dev.yml up --build`
3. Open `http://localhost:3000`.
The development compose stack runs Vite on `http://localhost:3000` and the VISA
API on `http://localhost:4000`.