Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

jac-uk/qt-prototype

Repository files navigation

Apply

CircleCI

This is the Vue SPA for candidate applications.

We have 2 Firebase projects:

Clone repository onto local machine

git clone [email protected]:jac-uk/apply.git

Change directory into project directory

cd apply

Project setup

npm install

Add environment variables to project

create .env file in root directory + credentials

Compiles and hot-reloads for local development (If you're new, copy another developer's .env file)

npm run serve

Compiles and minifies for staging

npm run build-staging

Compiles and minifies for production

npm run build-production

Compiles and minifies for staging and deploys to Firebase project Platform - Staging

npm run deploy-staging

Compiles and minifies for production and deploys to Firebase project Platform - Production

npm run deploy-production

Run your tests

npm run test

Lints and fixes files

npm run lint

Manually deploy to staging

firebase use staging
npm run deploy-staging

Manually deploy to production

firebase use production
npm run deploy-production

Continuous deployment

Merging to master automatically triggers a deploy to production.

Merging to staging automatically triggers a deploy to staging.

CircleCI configuration

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:

https://console.firebase.google.com/project/platform-production-9207d/settings/general/web:OTI4N2U1OGEtY2RkMi00ZTdjLWJiOWEtYWEyNjM1ZjhkNjJk

About

Vue SPA for taking online tests

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 17

Languages