1ffc3a65eb0ed8e8ceb12986e69a2b511e397c7b
Reviewed-on: #4
Calendar Run
Calendar Run is a races calendar project with a backend API for storing and querying race events.
Quick Start
- Install dependencies:
cd backendnpm install
- Configure environment variables in
backend/.env:
DB_HOST,DB_PORT,DB_NAME,DB_USER,DB_PASSWORD- Optional API port:
PORT(priority) orAPI_PORT - No PostgreSQL (CI / local smoke): set
CALENDAR_RUN_MOCK_DB=1(ortrue). RealDB_* values are not required; the API uses in-memory stubs for SQL used by the HTTP routes. Do not use mock mode fornpm run db:migrateornpm run seed.
- Build and run backend:
npm run buildnpm run dev
By default, the API listens on port 3001 if PORT and API_PORT are not set.
Backend And API Docs
Description
Languages
TypeScript
82.7%
CSS
17.1%
HTML
0.1%