- Notifications
You must be signed in to change notification settings - Fork94
An enterprise react template application showcasing - Testing strategy, Global state management, middleware support, a network layer, component library integration, localization, PWA support, route configuration, lazy loading and CI/CD
License
wednesday-solutions/react-template
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
An enterprise react template application showcasing - Testing strategies, Global state management, middleware support, a network layer, component library integration, localization, PWA support, route configuration, lazy loading, and Continuous integration & deployment.
Built usingreact-floki
Install dependencies using
yarn install
Run the initialize script using
yarn run initialize
Start the dev server using
yarn start
Go through the other scripts in
package.json
Global state management usingRedux Sauce
Take a look at the following files
Computing and getting state from the redux store usingReselect
Take a look at the following files
Side effects usingRedux Saga
Take a look at the following files
API calls usingWretch
Take a look at the following files
Styling components usingEmotion
Take a look at the following files
Reusing components fromMaterial UI
Take a look at the following files
Translations usingLingui
Take a look at the following files
Routing is done usingReact Router
Take a look at the following files
Storybooks allows you to work on one component at a time. You can develop entire UIs without needing to start up a complex dev stack, force certain data into your database, or navigate around your application.
- run storybook
yarn storybook
- run storybook
Take a look at the following files
Accessbility testing is done usinga11y addon.
Take a look at the following files
Run all the accessbility tests using
yarn test-storybook
Run single test file by specifying path
yarn test-storybook <path to file>
For the documentation take a look at:Accessbility test
We're using and configuring webpack to bundle our React application.
Take a look at the following files
The size of the bundle is analyzed using the webpack-bundle-analyzer to make sure that the bundle is lean and optimized.
Take a look at the following files
CI/CD using Github Actions.The CI pipeline has the following phases
- Checkout
- Install dependencies
- Lint
- Test
- Accessbility Test
- Build
The CD pipeline has the following phases
- Checkout
- Install dependencies
- Build
- Deploy
Take a look at the following files
Testing is done using the @testing-library/react.
Take a look at the following files
End to End testing is done usingplaywright.
Take a look at the following files
Run all End to End tests using
yarn test:e2e
Run single test file by specifying path
yarn test:e2e <path to file>
For the documentation take a look at:playwright
- Components, containers, tests and stories can be scaffolded usingFor the documentation take a look at:react-floki
yarn generate
- @app -> app/
- @containers -> app/containers/
- @components -> app/components/
- @services -> app/services/
- @utils -> app/utils/
Take a look at the following files
Take a look at the following files
Take a look at the following files
About
An enterprise react template application showcasing - Testing strategy, Global state management, middleware support, a network layer, component library integration, localization, PWA support, route configuration, lazy loading and CI/CD
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Uh oh!
There was an error while loading.Please reload this page.