FLARE Cloud UI Components
A React/Redux/Material component library for FLAREcloud user interfaces
Pre-requisites
- Install Node.js
- Install Docker
- Install the FLARE client PKI certs in your browser. When you load the app your browser will prompt you to pick a certificate, which is analogous to picking which test user you want to log in as.
Serve the "development" version of the site
npm install
Install all dependencies
npm run start
- This runs Webpack and Webpack Dev Server, which builds and serves the website locally (i.e., it creates a web server on localhost:3000). If you would like to modify the port, read the ReactCreateApp documentation.
- After running the command the app should pop up on your default browser
Running Unit Tests
npm run test
Will run the Jest/Enzyme Unit tests. To get code coverage:
npm run test -- --coverage
Publishing changes
Build the Library
npm run build-lib
Note that you will need to be logged into the npm repository https://docs.npmjs.com/private-modules/intro
Will produce /lib
Make sure to modify the version in the package.json
according to the semantic version standards: https://semver.org/
npm publish