mirror of
https://github.com/Ategon/Jamjar.git
synced 2026-09-18 16:27:08 -04:00
Frontend for the D2Jam game jam site.
https://d2jam.com
- TypeScript 96.8%
- JavaScript 2.2%
- CSS 0.7%
- Shell 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .devcontainer | ||
| .github/workflows | ||
| .vscode | ||
| packages | ||
| public | ||
| scripts | ||
| src | ||
| tests | ||
| tools | ||
| .dockerignore | ||
| .gitignore | ||
| .nvmrc | ||
| docker-compose.yml | ||
| Dockerfile | ||
| index.html | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.mjs | ||
| README.md | ||
| server.mjs | ||
| tailwind.config.ts | ||
| tsconfig.json | ||
| vite.config.ts | ||
Jamjar
Frontend for Down2Jam.
Local Development
npm install
npm run dev
The dev server runs on http://localhost:3000.
Create a .env file if you need to choose which API to use:
VITE_PUBLIC_MODE=DEV
DEV uses a local Jamcore API on http://localhost:3005.
PROD uses the production API.
Production
npm run build
npm start
The production server serves the Vite build and injects dynamic SEO metadata for public game, music, user, and post pages.
Useful environment variables:
PORT=3000
PUBLIC_ORIGIN=https://d2jam.com
API_BASE_URL=https://d2jam.com/api/v1
VITE_GAME_BUILDS_ORIGIN=https://play.d2jam.com
In production, VITE_GAME_BUILDS_ORIGIN should be a dedicated cookieless origin that proxies /game-builds/* to Jamcore. Keep it unset for local same-origin development.
Docker
docker compose up --build -d