This project has two apps:
- Backend API on
http://localhost:5001 - Frontend on
http://localhost:3000
- Node
16.20.2(see.nvmrc) - npm
8+ - Docker Desktop (recommended for PostgreSQL)
nvm install
nvm use
node -v
npm -vnpm installcp backend/.env.example backend/.envdocker compose up -d postgresIf you use a local PostgreSQL install instead of Docker, update backend/.env to match your local credentials.
npm run db:migrate
npm run db:seedRun backend:
npm run dev:backendIn a second terminal, run frontend:
npm run dev:frontendECONNREFUSED 127.0.0.1:5432: PostgreSQL is not running.lockfileVersion@2warning: npm is too old; switch to Node 16 with npm 8+.- Frontend cannot reach API: confirm backend is running on port
5001.