/webpack-react-example

webpack-react-example

Primary LanguageJavaScript

webpack-react-example

An example of using Gulp, Webpack, React, and Redux
Build Status
Github page link: https://narr.github.io/webpack-react-example/
Heroku site link: https://webpack-react-example.herokuapp.com/


Install and Run in Production Mode

Delete npm-shrinkwrap.json and Install node modules for production and Run

rm -rf ./npm-shrinkwrap.json
cp ./npm-shrinkwrap.prod.json ./npm-shrinkwrap.json
npm install --production
npm start

Install and Run in Development Mode

npm install -g gulp
npm install
gulp

Generate static pages and Run the server

npm install -g gulp
npm install
gulp gh-all

Docker

Prerequisites

Docker

docker-compose up -d

After that, open http://"docker-machine's IP" on a browser