Basic tech stack:
- Node.js runtime
- Express.js API server
- React frontend
- PostgreSQL database
frontend/ React + Vite frontend
backend/ Node.js + Express API
docker-compose.yml Local PostgreSQL database
- Install dependencies:
npm.cmd install- Create local env files:
Copy-Item backend/.env.example backend/.env
Copy-Item frontend/.env.example frontend/.env- Start PostgreSQL:
npm.cmd run db:up- Start the app:
npm.cmd run devFrontend: http://localhost:5173
Backend health check: http://localhost:3000/api/health
Swagger API docs: http://localhost:3000/api-docs
OpenAPI YAML: http://localhost:3000/openapi.yaml
The server creates a commands table automatically on startup. The sample UI sends commands to the server and stores them in PostgreSQL.