1
0
Fork 0
mirror of https://github.com/Down2Jam/Jamcore.git synced 2026-06-13 11:26:28 -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-05-04 17:07:47 -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
auth Backend overhaul 2026-04-29 13:32:56 -04:00
config Add collections 2026-05-03 02:44:02 -04:00
contracts Add canvas resizing 2026-04-29 20:19:12 -04:00
docs Backend overhaul 2026-04-29 13:32:56 -04:00
domain Backend overhaul 2026-04-29 13:32:56 -04:00
features Add more quilt tools 2026-05-04 17:07:47 -04:00
generated Add canvas resizing 2026-04-29 20:19:12 -04:00
guards Backend overhaul 2026-04-29 13:32:56 -04:00
infra Backend overhaul 2026-04-29 13:32:56 -04:00
jobs Backend overhaul 2026-04-29 13:32:56 -04:00
lib Backend overhaul 2026-04-29 13:32:56 -04:00
loaders Backend overhaul 2026-04-29 13:32:56 -04:00
middleware Backend overhaul 2026-04-29 13:32:56 -04:00
prisma Add more quilt tools 2026-05-04 17:07:47 -04:00
public Backend overhaul 2026-04-29 13:32:56 -04:00
routes Add collections 2026-05-03 02:44:02 -04:00
runtime Backend overhaul 2026-04-29 13:32:56 -04:00
scripts Backend overhaul 2026-04-29 13:32:56 -04:00
tests Backend overhaul 2026-04-29 13:32:56 -04:00
types Backend overhaul 2026-04-29 13:32:56 -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
app.ts 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
main.ts Backend overhaul 2026-04-29 13:32:56 -04:00
package-lock.json Backend overhaul 2026-04-29 13:32:56 -04:00
package.json Backend overhaul 2026-04-29 13:32:56 -04:00
README.md Backend overhaul 2026-04-29 13:32:56 -04:00
tsconfig.build.json Backend overhaul 2026-04-29 13:32:56 -04:00
tsconfig.json Backend overhaul 2026-04-29 13:32:56 -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