Before starting the project, make sure Node.js is installed globally. After that install the application dependencies:
npm install
In the project directory, you can run:
npm run 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.
This project implements Apollo Client that talks to Apollo Server to query external data. Find out more on how to run CGR Portal Apollo Server here.
npm test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
npm run coverage
Runs the tests once and reports the coverage.
npm run e2e
Runs the end-to-end test against defined features and scenarios.
npm run 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.
npm run build
creates a build
directory with a production build of your app. Set up your favorite HTTP server so that a visitor to your site is served index.html
, and requests to static paths like /static/js/main.<hash>.js
are served with the contents of the /static/js/main.<hash>.js
file.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.