Connection to the ec2 instance with the sphinx-nav code (ask for the pem key)
ssh -i ./pemFiles/knowlege-graph-api.pem [email protected]
In the project directory, you can run:
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 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
- while running the application do
yarn run cy-run
- whithout running the application do
yarn run test-coverage
The coverage
folder contains generated coverage report
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