Production-ready boilerplate for building universal web apps with React and Redux
$ git clone https://github.com/vinks/react-boilerplate.git
$ cd react-boilerplate
$ rm -r .git
$ yarn
$ yarn start
- ES2015/16 with Babel
- Universal rendering with support for data fetching and code splitting.
- Hot reloading on both client and server
- Locally scoped CSS with CSS modules
- Scalable unit testing via Jest
- Development and release builds with Webpack 2
- State management with Redux
- ...Just 4 commands
All of the scripts are listed as following:
yarn <script> |
Description |
---|---|
start |
Run your app on the development server at localhost:6060 . HMR will be enabled. |
start:production |
Builds the app ready for release and run it on the production server at localhost:6060 . |
start:prod |
Run your app on the production server only at localhost:6060 . |
test |
Runs unit tests. |
build |
Builds the app ready for release. |
NOTE: Any of the environment variables can be made available to the client by explicitly declaring them in the root Html component. This extra step is required to prevent accidentally leaking sensitive data to the client.
MIT