This is the Vue SPA for managing exercises and candidates. By default, it deploys to digital-platform-develop.
git clone git@github.com:jac-uk/admin.git
cd admin
npm install
create .env.develop.local file in root directory + credentials
npm run serve
npm run build
npm run test
npm run lint
By default firebase deploy deploys to staging.
To manually deploy to production use either:
firebase deploy --project production
or
firebase use production
firebase 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-admin/edit#env-vars
Firebase environment variables bound to the CircleCI environment variables defined here: