DEMO
React Boilerplate:Full-Stack REACT & Redux - Created: 6 October 2016
DESCRIPTION:
Cannibalized from Templates and Boilerplates from around the web.
- Uses apisauce for API calls. See API README.md for details.
- Uses redux-sagas to call customized api methods.
- Uses redux_sauce to create Types, Creators & Reducer.
- Uses redux-logger to allow for informative workflow from the devtools console.
- Uses redux-devtools-extension to allow for a macro perspective picture of your current store's state.
- Configured for front end environment variables using webpack.DefinePlugin().
- Airbnb Style Guide implemented.
Setup:
npm i
to install dependenciesnpm start
for development servernpm run build
for production server
NOTE: I Highly recommend running npm update --save
to update package json before running npm start
or npm build
.
NOTE on Reducers:
This bp's Redux reducer methods rely on the developer to customize the logic to maintain immutability of state. This was done intentionally to strengthen developers abilities in manipulating state. If this feels cumbersome, I highly recommend using seamless-immutable (refs below) to outsource this process in a very clean, and simple way.
Helper Libraries:
Suggested Libraries:
Influences:
- Ignite Infinite Red's React Native Boilerplate.
- Cory House's React Slingshot Boilerplate.
- Matthew Broatch's React Template.
- David Durbina's React/Express Boilerplate.
Updates:
- December 1st 2016:
- Extensive refactor to entire project. WARNING in the process of re-factoring package.json and webpack.config for smoother deployment however process is not yet complete. Will update here when it's finished and GTG.
- December 2nd 2016:
- Finished major refactor and deployment. Click the "DEMO" link above to check out the latest working version. Thanks for the interest.