There are three parts to the system:
- Web server - this is a node.js web server which replies to requests and builds responses.
- Front end build system. This builds simply the splash page showing off the features.
- Admin console. Full administrative system as an SPA which uses the web server to function.
The version of node is specified in .nvmrc
as 14. This ensures long term compatability.
The build node version is currently also 14.
npx lint --fix
The tests are written in Mocha, and can be run with:
heroku local:run mocha -e .env.test
They're also run on Travis CI from GitHub actions.
The deployment pipeline uses GitHub actions to run the Travis CI test runner. If that pases, it's deployed to a beta environment. This can then manually be deployed to production.
Environments:
heroku local:run npm run dev
- Build and startheroku local:run npm start
- Start without buildingnpm run postinstall
- Build
Changing to frontend
npm start
npm clean
Manually download JSON from server
wget -U=LandscapeConnect http://landscape-connect-beta.herokuapp.com/api/questionnaires/6788B