Skip to content

Production-ready boilerplate for building universal web apps with React and Redux

License

Notifications You must be signed in to change notification settings

vinks/react-boilerplate

 
 

Repository files navigation

60fram.es React Boilerplate Build Status Coverage Status

Production-ready boilerplate for building universal web apps with React and Redux

tl;dr

$ git clone https://github.com/vinks/react-boilerplate.git
$ cd react-boilerplate
$ rm -r .git
$ yarn
$ yarn start

Features

  • 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

Commands

NPM Script 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.

Environment Variables

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.

License

MIT

About

Production-ready boilerplate for building universal web apps with React and Redux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.3%
  • CSS 2.7%