1.0.0 • Published 6 years ago
frontend-application v1.0.0
ABCCD Frontend
Requirements
- docker >= 17.0.0
- docker-compose >= 1.17.0
- node >= 9.0.0
- npm >= 6.0.0
Install application
If not yet done, clone project locally and install node dependencies:
git clone git@gitlab.com:abccd/frontend/frontend-application.git
npm install # install node dependencies locallyStart application
npm run start # dev modeor with using staging backend
REACT_APP_HOST_URL=https://amabeni-staging.abccd.consensys.paris npm startor with Docker:
docker-compose up # dev modeRun with local backend
You'll need to modify src/setProxy.js file and edit target property. Please know that working with the local backend will need the pathRewrite property to be set, while working with the remote backend won't.
Run first the backend locally:
docker-compose up # dev modeOnce started, run the local frontend with npm:
npm run start # dev modeRun unit test
npm run test # run test locallynpm run test:singlerun # run test locally with coveragenpm run test:cover # run test ci pipelineRun storybook
npm run storybookRun StyleGuide
npm run styleguideRun bundle analysis
This will produce a graphical visualization of the current build. Command automatically opens the visualizer in a browser tab/window.
npm run analyze1.0.0
6 years ago