This boilerplate is a starting point for a web app with redux, react, react-router, and webpack.
This repository was built using npm v4.2.0
- Clone this repo and give your project a name:
git clone https://github.com/tysonbattistella/react-redux-webpack-boilerplate.git <YOUR_PROJECT_NAME>
- Enter the directory:
cd <YOUR_PROJECT_NAME>
- Install the requirements:
npm install
- Build the project
- To build for development, run
npm run dev
- Press
ctrl+H
to open the Redux Devtool side bar.
- Press
- For a production app, run
npm run build
- To build for development, run
- Click on the unicorn 🦄
This boilerplate's structure is based off of the Ducks Pattern.
It allows for redux features to be bundled together in a self-contained matter.
Components are split into Presentational and Container Components (app/components/
and app/containers/
, respectfully) as recommended in this write-up by Dan Abramov.
CSS files are siblings to their components, as each component is nested in its own directory and exposed through the components/index.js
file.