Bootstrapping function for Redux applications

We are happy to announce that we just open-sourced a small library for the redux ecosystem called redux-bootstrap.

redux-bootstrap is a bootstrapping function for Redux applications. Redux bootstrap does not generate files for you. It is not a project template or project scaffolding tool and it is not related with Bootstrap (responsive web apps framework).

Redux-bootstrap handles most of the common application initialisation / bootstrapping that takes place every time you create a new Redux project.

Motivation

When you create a new Redux project you usually need to take care of a few things:

Install dependencies.

Integrate the React router with Redux.

Create a Root reducer.

Enable DevTools is environment is development / Disable if environment is production.

Integrate Immutable with Redux.

Apply middleware.

Combine reducers into a root reducer.

Create the store.

Sync history with store.

Create the Root component (Provider, Router).

Set the routes, history and store in the Root component.

Render the Root component.

The redux-bootrap package handles all this stuff for you!

This idea is based on the bootstrap function which is available in other modern JS framewokrs like the Angular 2.0 or the Aurelia bootstrapping functions.

The basics

You can install redux-bootstrap using npm:

$ npm install --save redux-bootstrap

The preceding command will install redux-bootstrap and the following dependencies: