This is the Vue SPA for candidate applications.
We have 2 Firebase projects:
git clone [email protected]:jac-uk/apply.git
cd apply
npm install
create .env file in root directory + credentials
npm run serve
npm run build-staging
npm run build-production
npm run deploy-staging
npm run deploy-production
npm run test
npm run lint
firebase use staging
npm run deploy-staging
firebase use production
npm run deploy-production
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: