Check out the live demo
- Clone the project and checkout your specified branch
- In a terminal type
yarn
install dependencies - In a terminal type
yarn start
to run the project - A new browser window will be opene to the port specified in your .env
- In a terminal type
yarn test
to run your tests - In a terminal type
yarn lint
to check for lint mistakes - In a terminal type
yarn build
to make a production ready build
This project was created with Create React apps with no build configuration Uses Redux for the project's state management, Styled-Components for the styling, Font Awesome for ui and Flow for Type checking:
- Creating an App – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.
- React's context API, to handle all the business logic (state), same logic with different components just by using the created reducer (reusability, refactoring, maintainace)
- Create React App to have a PWA ready project
- Single responsibility
- Small Stateless Components instead of big Classes
- Composable Components
- Reusable
- Meaningful
- Declarative FP with Pure or Almost-Pure functions
- Try to keep the Component's methods styles in the same folder
Yes, we lint our files.
Lint will ensure that so best practices are followed. Search the error messages and learn with that.
Make sure that all your .js files are passing the lint check before open a PR.
There is pre-commit hook that won't allow you to commit without fixing the lint alerts.
Following TDD you need first to write a small story, with an empty component and the unit tests and then we develop the component.
Test stack consist of Testing Library
The test are attached with an addon to the component story. You can follow the tests results directly through Storybook at the right panel under the specification tab.