Skip to content

BlueRabbits/bluerabbit

Repository files navigation

react-webpack-setup

React Redux Webpack Babel Koa setup for kickstarting project in no time

This repo is for those who doesn't want to mess up with react webpack babel setup. This app does it for you. You start writing your application logic starting from "App.js"

Libraries used

  1. React v15.2
  2. Redux v3.6
  3. React-Router v2.8
  4. Webpack v1.13.2
  5. Webpack dev server v1.16
  6. Babel v 6^
  7. koa v1.2

Instructions

  1. clone the repo: git clone https://github.com/shek8034/react-webpack-setup.git

  2. Run npm install

  3. For development version, follow these steps:-
    a) npm run dev to start webpack dev server.
    b) Hit http://localhost:8080 and you app is served by webpack dev server. It uses hot reloading, so any chagne you make in your code with be built automatically and reflected in the browser.

  4. For production build, follow these steps:-
    a) npm run build to create a dist directory with production build. It has app.js, app.css and vendor.js code separated.
    b) node server.js to run local node web server and hit http://localhost:8000
    c) For deployment, publish dist directory

Notes

I will keep updating this repo and will try to make it more resuable.

Contributions

darshankumar@apache.org

LICENSE

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published