About this project
# Jamjar
Jamjar is the frontend for the Down2Jam game jam platform. It provides the user-facing web interface for browsing and interacting with game jam content, including public pages for games, music, users, and posts.
## Local Development
To run the project locally:
```bash
npm install
npm run dev
```
The development server runs on `http://localhost:3000`.
You can optionally create a `.env` file to select which API backend to use:
```env
VITE_PUBLIC_MODE=DEV
```
- `DEV` mode uses a local Jamcore API at `http://localhost:3005`.
- `PROD` mode uses the production API.
## Production
For a production build:
```bash
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 for production:
```env
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 point to a dedicated cookieless origin that proxies `/game-builds/*` requests to Jamcore. For local same-origin development, keep this variable unset.
## Docker
To run the application in a Docker container:
```bash
docker compose up --build -d
```
This sets up the frontend service with the necessary build and runtime configuration.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.