vinks / react-boilerplate

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

Home Page:https://sixtyframes-react-boilerplate.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://sixtyframes-react-boilerplate.herokuapp.com/

License:MIT License


Languages

Language:JavaScript 97.3%Language:CSS 2.7%