In the project directory, you can run:
yarn start
Runs the app in the development mode.\ Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.\ You will also see any lint errors in the console.
run tests
Run e2e and component tests (cypress non-headless mode) like so
yarn run cy-open
Run e2e test in headless mode like so
yarn run cy-run
Run component test in headless mode like so
yarn run cy-comp
To create a test coverage report
yarn run cy-run
yarn run test-coverage
The coverage
folder contains generated coverage report
yarn build
Builds the app for production to the build
folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\ Your app is ready to be deployed!
See the section about deployment for more information.
For run the docker build locally use the commands bellow
build docker image
docker build --build-arg REACT_APP_API_URL={{custom_api_irl}} -t sphinx_nav_fiber .
run the image on localhost
docker run -p 3004:80 sphinx_nav_fiber
Add svg icon to public/svg-icons with proper naming
run node ./svgLibBuilder.js
it will generate React Icon in src/components/Icons