Environment | Branch | Status |
---|---|---|
production | production | |
staging | master |
Clone the project, and run npm install
To create a new deployment bundle, run npm run build
To run unit tests, run: npm run test
. This should generate code coverage files and an lcov.info
file that is compatible with most code-coverage highlighting plugins.
The CIDC leverages Google Cloud Storage's static site-hosting capabilities for serving the Portal UI. Although it's recommended that you rely on the Travis CI pipeline for deployment to staging and production, should you need to deploy by hand, run:
sh .travis/build.sh
sh .travis/deploy.sh gs://$YOUR_GCS_BUCKET
This will create an optimized build of the site using whatever configuration is present in your .env
file, upload the build files to $YOUR_GCS_BUCKET
, and make those files publicly readable.
To test React components without trying to contact the back-end, start the application in "dev mode", with npm run start-dev