- webpack with webpack-dev-server, html-webpack-plugin
- Babel with babel-preset-env, babel-preset-react, object spread, class properties
- ESLint
- Jest + Enzyme
- React-router v3
You should have node and yarn installed on your machine:
- Clone this repo
$ git clone https://github.com/ok2ju/modern-react-boilerplate.git && cd modern-react-boilerplate- Install project dependencies
$ yarn install- Run app (in dev mode) using following command:
$ yarn dev- Visit http://localhost:8080
yarn dev- run app in dev modeyarn build- build production-ready appyarn lint- lint(validate) source codeyarn test- run tests
This repository has two branches:
develop- basic react application boilerplate with minimum configurationpackage/postcss- basic boilerplate with styles (postcss, css modules)package/flowtyped-react- react boilerplate with flow - static type checker
Note: currently this branches have different dependencies versions. 😓 I will fix it later.
For example develop branch has react-router v3 but package/flowtyped-react - react-router v4
