chenbin92 / react-redux-webpack-starter

Learning react
189 stars 45 forks source link
babel eslint loader react webpack

React-babel-webpack-es6 Starter Project

A boilerplate using React, webpack and hot module reloading, and ES6 + JSX via Babel.You could use it as a base to build your own web app.

Features

The provided boilerplate enables client-side ES6 via the following technologies:

Getting Started

Installation

you should clone the repo and install the dependencies.

$ git clone https://github.com/chenbin92/react-redux-webpack-starter.git app-name
$ cd app-name
$ npm install  //or cnpm install

Development

In the development mode. launch the boilerplate app:

// run the dev server http://localhost:8080

$ npm start  

you should see a new browser tap opening and a title of "Hello React” in http://localhost:8080/, page hot reloads automatically when there are changes

Webpack-dashboard homepage

When you run npm start:

Production

In the production mode, you can:

// run the prod server http://localhost:9090

$ npm run start: prod
// build the static files.

$ npm run build 

npm run build. This will prepare and build the project for production use. It does the following:

All configuration tasks

TODO

Others