TODO: Add a link to the deployed Heroku app for your team here, e.g.
Production deployment: https://f22-6pm-3-team03.herokuapp.com/
Storybook (production): https://ucsb-cs156-f22.github.io/team03-f22-6pm-3-docs
Storybook (development/qa): https://ucsb-cs156-f22.github.io/team03-f22-6pm-3-docs-qa
TODO: Leave the results of the TODOS, but remove all of the TODO instructions from the readme.
Before running the application for the first time,
you need to do the steps documented in docs/oauth.md
.
Otherwise, when you try to login for the first time, you will likely see an error such as:
mvn spring-boot:run
cd frontend
npm install # only on first run or when dependencies change
npm start
Then, the app should be available on http://localhost:8080
If it doesn't work at first, e.g. you have a blank page on http://localhost:8080, give it a minute and a few page refreshes. Sometimes it takes a moment for everything to settle in.
If you see the following on localhost, make sure that you also have the frontend code running in a separate window.
Failed to connect to the frontend server... On Heroku, be sure that PRODUCTION is defined. On localhost, open a second terminal window, cd into frontend and type: npm install; npm start";
On Heroku, you'll need to set the following configuration variable:
heroku config:set PRODUCTION=true --app <heroku app name>
You'll also need to follow the OAuth set up instructions here: docs/oauth.md
.
If you get the following message on Heroku, it probably means that you failed to setup the PRODUCTION
environment variable.
Failed to connect to the frontend server... On Heroku, be sure that PRODUCTION is defined. On localhost, open a second terminal window, cd into frontend and type: npm install; npm start";
To access the swagger API endpoints, use:
cd into frontend
use: npm run storybook
This should put the storybook on http://localhost:6006
Additional stories are added under frontend/src/stories
For documentation on React Storybook, see: https://storybook.js.org/
On localhost:
target
mvn clean
the database is completely rebuilt from scratchOn Heroku:
heroku pg:reset --app app-name-goes-here