Minimal React boilerplate for you.
This boilerplate contains all you need to start your next React.js project. Simple, robust, well-organized, all you need to do is clone, install and you're ready to start.
This boilerplate features all the latest tools and practices in the industry.
- ⚛ React — 16.7.0-alpha.0 with Hooks
- 🎡 React Router: - Router for React Application
- ♻ Redux with Redux Thunk — State Management with middleware to handle async requests
- 🛠 Babel — ES6 syntax, Airbnb & React/Recommended config
- 🚀 Webpack — Hot Reloading, Code Splitting, Optimized Build
- 💅 CSS — Styled Components
- ✅ Tests — Jest, Enzyme & Cypress
- 💖 Lint — ESlint
- 🔨 Typed Definition — Flow
- 🐶 Husky — Prevent bad commits
- 📚 Storybook: Storybook for component virtualization
- 🕹 Deployment Automation: Using Terraform with AWS Provider to deploy static site (S3, Cloudfront, ACM & Route53)
- Lazy load: Lazy load component;
- Redux Saga: Support Saga in Redux;
- Localization: Support localization;
- Hot Module Replacement: Better HMR support;
- PWA: Turn into a PWA boilerplate with
workbox-webpack-pluginandwebpack-pwa-manifest; - SEO: SEO-ready with
React Helmet;
- Clone this repo using
https://github.com/kominam/react-boilerplate - Move to the appropriate directory:
cd react-boilerplate. - Run
yarnornpm installto install dependencies. - Run
npm startto see the example app athttp://localhost:8080
npm start- start the dev servernpm run build- create a production ready build inbuildfoldernpm run lint- execute an eslint checknpm run lint:fix- execute an eslint and fix the errorsnpm test- run all testsnpm run test:watch- run all tests in watch modenpm run test:coverage- coverage modenpm run cypress:open- starts cypressnpm run cypress:run- run cypressnpm run storybook- run storybook
We are using these tools for deployment:
So make sure that you have installed and configured them properly.
Using script scripts/deploy, syntax:
scripts/deploy
MIT license, Copyright (c) 2019.