An online quiz web app that uses React's create-react-app
for the UI
and Express with MongoDB for the API layer.
https://simulstudy.herokuapp.com/
Rename .env-example file to .env and provide the values for unspecified keys
MONGODB_URL="<add value>"
JWT_SECRET="<add value>"
PORT=3001
IMPORTANT: Don't forget to set the config vars in Heroku dashboard: https://dashboard.heroku.com/apps/simulstudy/settings
# Install frontend dependencies
cd frontend && npm install
# Run frontend dev server
npm run start
Run this in another terminal:
# Install server dependencies
npm install
# Run server with automatic reloading
npm run dev
# Login to Heroku
heroku login
#Push up the current version of the app
git push heroku <current branch>:main
# Inspect Heroku logs
heroku logs --tail
# Confirm application works locally before deploying to Heroku
heroku local web