This project was bootstrapped with Create React App.
In the project directory, you can run:
To install all dependencies
First of all run the above command to start the server in the right port - this is important for the requests calls
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.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
It opens the cypress test runner for integration tests
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 a smooth maintenance of the code base we use pre-commit hooks (through husky) which check for eslint errors and format the code with prettier. Please make sure your code respect the eslint rules otherwise you will not be able to commit.
In case you want to set in your editor the same rules used in this project regarding formatting (Really recommended!!!!) here are the specs for your .prettierrc.js file
module.exports = {
printWidth: 100,
trailingComma: 'none',
tabWidth: 2,
semi: true,
singleQuote: true
};
For speed up the process the Base Web compoenent library was used and adapted according to the company's styleguide. Globals settings were defined at the index.css. The BEM methodology was used.