Angular 5 and Redux-Observable boilerplate with Angular CLI
A highly opinionated, advanced starter kit for web development using Angular 5, Redux and Redux-observable.
A React version you can find here react-redux-rxjs-boilerplate.
- Clone this repo using
git clone https://github.com/krzyszt/angular-redux-rxjs-boilerplate.git
- Move to the appropriate directory:
cd angular-redux-rxjs-boilerplate
- Run
yarn install
in order to install dependencies - At this point you can run
ng serve -o
to see the example app athttp://localhost:4200
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.