Backend API for Down2Jam.
npm install
npm run devBy 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=RANDOMSTRINGHEREdocker compose up --build -dThis starts Jamcore and its Postgres database.
npm run build
npm startUseful environment variables:
NODE_ENV=production
PORT=3005
CLIENT_ORIGIN=https://d2jam.com
DATABASE_URL=postgresql://user:password@host:5432/database
TOKEN_SECRET=RANDOMSTRINGHEREOptional 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