1.0.0 • Published 4 years ago

frontend-application v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

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 locally

Start application


npm run start # dev mode

or with using staging backend

REACT_APP_HOST_URL=https://amabeni-staging.abccd.consensys.paris npm start

or with Docker:

docker-compose up # dev mode

Run 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 mode

Once started, run the local frontend with npm:

npm run start # dev mode

Run unit test


npm run test # run test locally
npm run test:singlerun # run test locally with coverage
npm run test:cover # run test ci pipeline

Run storybook


npm run storybook

Run StyleGuide


npm run styleguide

Run bundle analysis


This will produce a graphical visualization of the current build. Command automatically opens the visualizer in a browser tab/window.

npm run analyze