This node.js app hosts the Common Hosted Forms frontend.
This app will require some configuration. The API will be locked down and require a valid JWT Token to access. We will need to configure the application to authenticate using the same Keycloak realm as the frontend.
Ensure that you have filled in all the appropriate configurations shown in config/custom-environment-variables.json before proceeding. You can configure your database connection, front and back-end paths and authentication parameters as well as object storage for file uploads with a local configuration file '/app/config/local.json' or openshift config maps.
In general, most of these npm run scripts can be prepended with all:
in order to run the same operation on both the application and the frontend sequentially.
Migrate Database
npm run migrate
Seed Database with Example Data
npm run seed:run
npm run all:fresh-start
npm run serve
Start a new terminal
cd frontend
npm run serve
npm run test
npm run lint
npm run lint-fix