Backend API for Down2Jam.
npm install npm run dev
By default the API runs on http://localhost:3005.
Create a .env file with database and auth settings:
POSTGRES_USER=jammer POSTGRES_PASSWORD=INSERTPASSWORDHERE POSTGRES_DB=jamcore TOKEN_SECRET=RANDOMSTRINGHERE
docker compose up --build -d
This starts Jamcore and its Postgres database.
npm run build npm start
Useful environment variables:
NODE_ENV=production PORT=3005 CLIENT_ORIGIN=https://d2jam.com DATABASE_URL=postgresql://user:password@host:5432/database TOKEN_SECRET=RANDOMSTRINGHERE
Optional app overrides can be placed in app.config.json or pointed to with APP_CONFIG_PATH.
Use app.config.example.json as the starting point.
GET /healthzGET /readyzGET /metricsGET /api/v1/openapi