Minimal fullstack app using React (Vite) + Express.
- UI server:
npm run dev:ui(Vite onhttp://localhost:5173) - API server:
npm run dev:api(Express onhttp://localhost:8080) - Both together:
npm run dev
Vite proxies /api/* requests from port 5173 to the API server on port 8080.
- Build frontend:
npm run build
- Start server:
npm run start
- Open:
http://localhost:8080
In this mode, Express serves both API endpoints and built frontend assets from dist/.
npm run dev- Runs both backend and frontend in parallelnpm run dev:api- Runs Express backend onlynpm run dev:ui- Runs Vite frontend onlynpm run build- Builds React app intodist/npm run start- Starts Express server
GET /api/helloGET /api/hello2GET /api/hello3
See docs/fullstack-architecture.md for the full request-flow document.