This is the REGARDS Frontend webapp.
- node: v16+
- yarn v1.22+
Important
As REGARDS frontend is developed around two main libraries, React and Redux, we highly recommand new developers to start by watching the here under Egghead videos to learn the basics of these two libraries.New developers can also check at the Material-ui library which is used to design all components of the REGARDS frontend.
Install dependencies with the following:
yarn
This two commands will generate the entire webapp for production environement with all plugins compiled.
The result is in the dist/prod
directory.
yarn build:production
yarn build:plugins
Congratulation, you're now ready to launch the application.
The command below allow you to run the frontend webapp in development mode with sources hot reload.
To do so, you have to define the regards gateway server address by replacing http://localhost:9300
by the address
of your REGARDS gateway microservice in the command line below.
yarn start:local --rsgateway=http://localhost:9300
Optionally, you may also build the plugins, using the following command in webapp folder:
./scripts/build-all-plugins dev all
Congratulation, you're now ready to access yout local development server in a browser at the address http://localhost:3333
.
It runs tests in then terminal, then creates a report in reports/mocha/
folder:
npm test
To run tests with coverage, then creates coverage reports (lcov, xunit) inside reports/coverage/
folder:
yarn test:coverage
You shall lint the entire app using our Regards OSS lint rules before commiting: