React and Redux-Observable boilerplate with Neutrino
A highly opinionated, advanced starter kit for web development using React, Redux and Redux-observable. Built with Neutrino.
An Angular 5 version you can find here angular-redux-rxjs-boilerplate.
- Clone this repo using
git clone https://github.com/krzyszt/react-redux-rxjs-boilerplate.git
- Move to the appropriate directory:
cd react-redux-rxjs-boilerplate
- Run
yarn install
in order to install dependencies - At this point you can run
yarn start
to see the example app athttp://localhost:5000
The starter kit comes with a configured Redux store which uses
Redux-observable
(RxJS 5- based middleware for Redux).
Redux-observable turns every action emitted by your Redux app into an observable stream.
The core primitive of redux-observable is called an epic, which is a function that listens for actions on that stream,
and allows you to react to those actions before optionally emitting new actions yourself — actions in , actions out.
To add a new application slice just add a new reducer to the rootReducer then add new actions and epics or replace existing ones.
The starter kit comes with a configured testing environment.
Run yarn test
, yarn test-watch
or yarn test-coverage
for testing.
Run yarn build
to build the application.
The starter kit comes with a configured Storybook
Run yarn storybook
to see the storybook at http://localhost:6006