1
0
Fork 0
mirror of https://github.com/Ategon/Jamjar.git synced 2026-04-29 06:54:49 -04:00
Frontend for the D2Jam game jam site. https://d2jam.com
  • TypeScript 99.8%
  • JavaScript 0.1%
Find a file
2026-04-15 19:11:36 -04:00
.devcontainer link comment about mounting .ssh 2025-01-15 23:42:12 +04:00
.github/workflows Update test.yml 2025-03-10 22:56:44 -04:00
.vscode vscode launch option 2025-01-15 19:37:42 +00:00
packages Actually fix gradients 2026-03-22 20:49:22 -04:00
public Add emotes, reactions, mention, etc. 2026-03-06 18:32:46 -05:00
src Fix achievements, leaderboards, and results 2026-04-15 19:11:36 -04:00
tools/csv-to-json Add emotes, reactions, mention, etc. 2026-03-06 18:32:46 -05:00
.dockerignore Add docker support 2025-01-15 14:05:38 -05:00
.eslintrc.json Initial commit from Create Next App 2024-10-22 20:54:44 -04:00
.gitignore Initial commit from Create Next App 2024-10-22 20:54:44 -04:00
.nvmrc Add emotes, reactions, mention, etc. 2026-03-06 18:32:46 -05:00
docker-compose.yml Harden security 2026-02-16 11:41:19 -05:00
Dockerfile Fix build issues 2026-03-06 19:15:20 -05:00
LICENSE Add license 2025-01-14 17:22:56 -05:00
middleware.ts Add emotes, reactions, mention, etc. 2026-03-06 18:32:46 -05:00
next.config.ts proxy to prod api (#140) 2026-03-22 09:48:40 -04:00
package-lock.json refactor: use tanstack query (#141) 2026-03-22 09:50:14 -04:00
package.json refactor: use tanstack query (#141) 2026-03-22 09:50:14 -04:00
postcss.config.mjs Add emotes, reactions, mention, etc. 2026-03-06 18:32:46 -05:00
README.md Update README.md 2025-01-16 14:56:08 -05:00
tailwind.config.ts Add emotes, reactions, mention, etc. 2026-03-06 18:32:46 -05:00
tsconfig.json Add emotes, reactions, mention, etc. 2026-03-06 18:32:46 -05:00

Jamjar

Frontend for a game jam site

Things used

  • Typescript (language)
  • Next.js (web framework)
  • Tailwind (css framework)
  • Lucide (icons)
  • Eslint (static code analysis)
  • Framer motion (animations)
  • React Toastify (toasts)

Running for development

Prerequisites:

  • node.js or equivalent

To start up the site locally for development you need to:

  1. Go to a spot you want to be the parent folder for where the folder for Jamjar goes (e.g. navigate to it in terminal)
  2. Clone the repository aka get a local copy of the files (e.g. by running git clone https://github.com/Dare2Jam/Jamjar.git)
  3. Go into the folder you just cloned in (e.g. using cd Jamjar)
  4. Install dependencies needed for the site (e.g. npm i)
  5. Create a .env file in the folder which is used for environment variables. In this you would set NEXT_PUBLIC_MODE to either PROD or DEV depending on what backend data you want to load in (dev loads it from a locally running jamcore, PROD loads it from the production site)
NEXT_PUBLIC_MODE=DEV
  1. Run the site using npm run dev which will start up a dev server that will hot reload as you make changes (most of the time)
  2. Go to https://localhost:3000 (or another port if it says it started up the site on a different port)

Running using docker

Prerequisites:

  • docker

If you want to start up the frontend using docker instead of what is above (either for development or for a production site) you can run docker compose up --build -d to build the image and then run it in the background. This will need to be done after any changes you make to rebuild the image