This repo contains Github Actions scripts that automatically create and publish documentation for the code:
To set this up, follow the instructions here: docs/github-pages.md
Before running the application for the first time on localhost, you must:
docs/oauth.md
Otherwise, when you try to login for the first time, you will likely see an error such as:
Then:
mvn spring-boot:run
In the second window:
cd frontend
npm install # only on first run or when dependencies change
npm start
The app should be available on http://localhost:8080
The npm start
command may open up a web browser with the app running on port http://localhost:3000.
If you want to avoid this useless browser window opening up,
instead of npm start
, type this:
BROWSER=none npm start
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 Dokku, be sure that PRODUCTION is defined.
On localhost, open a second terminal window,
cd into frontend and type: npm install; npm start";
docs/oauth.md
PRODUCTION=true
Swagger is a tool that allows you to work directly with the RESTful API endpoints of the backend. It is similar to the tool Postman, but more convenient because it is built directly into the application.
To access the Swagger API endpoints, use:
You can also append /swagger-ui/index.html
to the URL manually when running on Dokku.
npm run storybook
You can also see the storybook for the main branch and all open pull requests on the github pages site associated with the repo; see /docs/github-pages.md for more info.
mvn javadoc:javadoc
target/site/apidocs/index.html
You can also see the javadoc for the main branch and all open pull requests on the github pages site associated with the repo; see /docs/github-pages.md for more info.
On localhost:
target
mvn clean
the database is completely rebuilt from scratchOn Dokku: