This repo contains the Next.js app for the JAM website.
- Get the code -
git clone https://github.com/Klkrieg/JAM-DEV.git - From the repo root, run
npm installto install dependencies - Duplicate the
example.env.localfile and change the name to.env.local(NOTE: this file isn't checked in to Git, so its safe to add sensitive info)
- Run
docker-compose up -dto create/start the MongoDB Docker container (NOTE: no need to do this if the container is already running) - Run
npm run devto start the app in watch mode
- Install Node JOSE tools:
npm install -g node-jose-tools - Run
jose newkey -s 256 -t oct -a HS512
# Platform
NODE_ENV
# If preview deployment
PREVIEW_DEPLOYMENT
# Database (local)
DB_CONN_STRING
# Auth
JWT_SECRET
JWT_SIGNING_KEY
GOOGLE_CLIENT_ID
GOOGLE_CLIENT_SECRET
FACEBOOK_CLIENT_ID
FACEBOOK_CLIENT_SECRET