react-simple-boilerplate

Features

It contains features:

  • webpack dev server by express middleware
  • webpack hot replacement
  • css modules
  • express server and pug template
  • pm2 process manager

Download and install

git clone git@github.com:shaojinghong/react-simple-boilerplate.git
cd react-simple-boilerplate
npm i

How to use at development environment

  • start webpack and launch webpack dev server
npm run dev
  • start your app server
npm run server

then visit "http://localhost:3001"

How to use at product environment

  • build your font-end source code .
npm run build
  • start your app product server
npm run prod-server