Redux Boot
Modular Redux bootstrap with asynchronous side-effects.
What is Redux Boot?
Minimal Framework using Redux to develop modularized universal (backend and frontend) applications, based on functional programming paradigms and friends such as Map and Reduce, Immutability and Reactive programming.
"Simplicity is the ultimate sophistication." -- Leonardo da Vinci
What Redux Boot provides?
- Module API - Clean organization and reuse patterns for your code.
- Async side-effects - No-brainer async side-effects with redux-actions and redux-promise.
Examples:
- Todo MVC example.
- The bootstrap tests.
- Simple web server App.
Documentation
For more details see the documentation.
Getting started
Install
npm install redux-boot --save
Basic Usage
const initialState = foo: 'bar' const testModule = reducer: BOOT: { return ...state foo: 'baz' } const modules = testModule const app = app
Sync middleware (with redux-actions)
const CHANGE_FOO = 'redux-boot/test/CHANGE_FOO' const changeFoo = const initialState = foo: 'bar' const testModule = reducer: CHANGE_FOO: { return ...state foo: actionpayload } middleware: BOOT: { store return } const modules = testModule const app = app
Async middleware (with redux-action and redux-promise)
const CHANGE_FOO = 'redux-boot/test/CHANGE_FOO' const changeFoo = const initialState = foo: 'bar' const testModule = reducer: CHANGE_FOO: { return ...state foo: actionpayload } middleware: BOOT: async { const result = await store return result } const modules = testModule const app = app
Development setup:
Install
git clone https://github.com/choko-org/redux-boot.gitnpm install
Build
npm run build
Build and Run the tests
npm test