A React front end with a Rails backend serving up assets through webpacker for the state of california CWDS project.
Make sure homebrew is up to date and xcode is installed.
Make sure XCode is installed.
run the command:
yarn run dev-build
from the root folder. This will perform the following actions:
yarn install packages
compiles webpack assets
starts rails server
The App is running on
to view the facilities demo webapp, go to
assets compiled via webpack live on:
NOTE: it is also important to also have redis server running. Start server with
if redis is not installed, enter the following command from terminal:
brew install redis
this command will install all necessary redis files.
to run linting on the project:
run all tests instructions
to run all tests and output code coverage:
Karma tests instructions
To run the karma tests, from the root folder run:
yarn karma (with reports),
yarn karma-ci (without reports)
this command will run the automated tests and open a browser with the results.
Rspec tests instructions
rspec tests live in the root spec/ folder. you can run all tests with either of the following commands
see docker wiki
Content permission logic
The structural interface of the service contains the array of
roles and the array of
The logged in user account has to have one of the listed
roles or one of the listed
permissions to see the particular functional button.
permissions arrays of the service are empty/not authorized, than the functional button will not be showed to any user.