Skip to content

Klkrieg/JAM-DEV

Repository files navigation

JAM Badge Run Tests Status Deploy Staging Status

JAM Website

This repo contains the Next.js app for the JAM website.

Getting Started

Setup the dev environment

  1. Install NVM then run nvm install 12.19.0
  2. Install Docker

Setup the project

  1. Get the code - git clone https://github.com/Klkrieg/JAM-DEV.git
  2. From the repo root, run npm install to install dependencies
  3. Duplicate the example.env.local file and change the name to .env.local (NOTE: this file isn't checked in to Git, so its safe to add sensitive info)

Run the app

  1. Run docker-compose up -d to create/start the MongoDB Docker container (NOTE: no need to do this if the container is already running)
  2. Run npm run dev to start the app in watch mode

Generating JWT Keys

  1. Install Node JOSE tools: npm install -g node-jose-tools
  2. Run jose newkey -s 256 -t oct -a HS512

Required Environment Variables

# 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

About

Web application for Joining All Musicians.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •