Skip to content

chosenvictim/react-webpack-setup

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 v4.20.2
  5. Webpack dev server v3.1.9
  6. Babel v7
  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

Contributions are welcome and if someone wants to add something to the repo and improve it, please go ahead and raise PR or write to me [email protected]

LICENSE

MIT

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •