##Repo Structure
- The top level folder contains all the backend files. This is to facilitate Github integration with Heroku or AWS.
- One of the top level folders is the frontend folder. This contains all the frontend source code.
##Run your own copy
- Download/clone repo
- Using command line interface (CLI) from top-level folder run:
npm install
- The backend will require these environment variables:
- STAGE (either 'development' to report errors or anything else to not)
- OAUTH_SERVER_CALLBACK_URL (the server's hostname like http://localhost:3000)
- OAUTH_CLIENT_CALLBACK_URL (the frontend's hostname like http://localhost:3001)
- GOOGLE_CLIENT_ID (google api client ID)
- GOOGLE_CLIENT_SECRET (google api client secret)
- DATABASE_STRING (the database connection string)
- EXPRESS_SESSIONS_SECRET (some secret string)
- CORS (the url of the frontend)
- Then run
nodemon
to start running the server locally (if nodemon isn't installed, follow instructions here nodemon) - Now in a new CLI, navigate to frontend folder and run:
npm install
- Then while in the frontend folder, run either:
npm run start
to run the frontend locallynpm run build
to generate the bundled html, css, and javascript to deploy online