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 migrateSeed Database with Example Data
npm run seed:runnpm run all:fresh-startnpm run serveStart a new terminal
cd frontend
npm run servenpm run testnpm run lint
npm run lint-fix