User interface for BRAVO. This Vue3 project uses multiple stand alone pages (apps) instead of a single page application as a transition step from the legacy design and implementation.
Install dependencies
npm install
npm run lint
Automatically watch the js files and run the tests whenever one changes.
fd '\.(js|Vue|vue)$' . | entr -c npm run test:unitUses constants defined in .env file.
npm run serveThere are two kinds of builds for this project, debug and production. The debug builds are non-minified and used for hot reloads during local development. The production builds are minified for deployment on the staging or production servers.
Production build configuration needs to be in a .env.production file.
This will override values in the .env file.
npm run buildStaging build is a production build with different constants for oauth, sub-title, etc.
Configuration for this mode needs to be in a .env.staging file.
This will override values in the .env file.
npm run build_stagingTo facilitate deployment systems, release gzipped tarfiles of the contents of dist/ provided as github releases.
npm run make_tarCreate a tar dist using staging config.
npm run make_tar_stagingIn staging and production the UI is served out of an AWS cloud front distribution. The following is the script used to push to the backing bucket manually.
#!/usr/bin/env bash
PROFILE="yourprofile"
BUCKET_NAME="bucket-backing-ui-cdn"
S3BUCKET="s3://${BUCKET_NAME}"
# Push all files to bucket
aws --profile ${PROFILE} s3 cp --recursive dist/ ${S3BUCKET}