This is the Vue SPA for candidate applications.
We have 2 Firebase projects:
When installing on Apple M1 you will need to run the following (see: https://github.com/Automattic/node-canvas/issues/1733#issuecomment-905414545):
arch -arm64 brew install pkg-config cairo pango libpng jpeg giflib librsvg
git clone git@github.com:jac-uk/apply.git
cd apply
npm install
create .env file in root directory + credentials
.env
file)npm run serve
npm run staging:build
npm run production:build
Platform - Staging
npm run staging:deploy
Platform - Production
npm run production:deploy
npm run test
npm run lint
firebase use staging
npm run staging:deploy
firebase use production
npm run production:deploy
Merging to master
automatically triggers a deploy to production
.
Merging to staging
automatically triggers a deploy to staging
.
The CircleCI instance has to have a FIREBASE_DEPLOY_TOKEN
set. This is tied to a specific firebase user. If that user leaves
the organisation, the token will need to be reset. To do so run firebase login:ci
and follow the instructions there and then on
CircleCI.
CircleCI environment variables are defined here:
https://circleci.com/gh/jac-uk/apply/edit#env-vars
Firebase environment variables bound to the CircleCI environment variables defined here: