1
0
Fork 0
mirror of https://github.com/Down2Jam/Jamcore.git synced 2026-07-15 18:56:31 -04:00
Backend for the D2Jam game jam site. https://d2jam.com
  • TypeScript 98.9%
  • JavaScript 0.7%
  • PLpgSQL 0.3%
Find a file
2026-06-17 16:28:38 -04:00
.devcontainer Backend overhaul 2026-04-29 13:32:56 -04:00
.github/workflows Backend overhaul 2026-04-29 13:32:56 -04:00
.vscode devcontainer & vscode launch option 2025-01-15 21:03:29 +00:00
docs Backend overhaul 2026-04-29 13:32:56 -04:00
generated Clean up directories and update depencies 2026-06-17 16:28:38 -04:00
prisma Clean up directories and update depencies 2026-06-17 16:28:38 -04:00
public Clean up directories and update depencies 2026-06-17 16:28:38 -04:00
scripts Clean up directories and update depencies 2026-06-17 16:28:38 -04:00
src Clean up directories and update depencies 2026-06-17 16:28:38 -04:00
tests Clean up directories and update depencies 2026-06-17 16:28:38 -04:00
.dockerignore Backend overhaul 2026-04-29 13:32:56 -04:00
.env.example Handling missing twitch credentials and better notif links 2026-04-30 07:33:45 -04:00
.gitignore Backend overhaul 2026-04-29 13:32:56 -04:00
.nvmrc Add emotes, embeds, reactions, and update packages 2026-03-06 18:21:09 -05:00
app.config.example.json Backend overhaul 2026-04-29 13:32:56 -04:00
docker-compose.yml Handling missing twitch credentials and better notif links 2026-04-30 07:33:45 -04:00
Dockerfile Backend overhaul 2026-04-29 13:32:56 -04:00
LICENSE Add MIT License to the project 2026-04-08 17:10:54 -04:00
package-lock.json Clean up directories and update depencies 2026-06-17 16:28:38 -04:00
package.json Clean up directories and update depencies 2026-06-17 16:28:38 -04:00
README.md Backend overhaul 2026-04-29 13:32:56 -04:00
tsconfig.build.json Clean up directories and update depencies 2026-06-17 16:28:38 -04:00
tsconfig.json Clean up directories and update depencies 2026-06-17 16:28:38 -04:00
vitest.config.ts Backend overhaul 2026-04-29 13:32:56 -04:00

Jamcore

Backend API for Down2Jam.

Local Development

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

docker compose up --build -d

This starts Jamcore and its Postgres database.

Production

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

Configuration

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.

Health

  • GET /healthz
  • GET /readyz
  • GET /metrics
  • GET /api/v1/openapi