https://github.com/kristerkari/observable-redux-json-api
Observables + Redux + JSON API
https://github.com/kristerkari/observable-redux-json-api
crud json-api observable redux redux-observable rxjs
Last synced: about 1 month ago
JSON representation
Observables + Redux + JSON API
- Host: GitHub
- URL: https://github.com/kristerkari/observable-redux-json-api
- Owner: kristerkari
- License: mit
- Created: 2017-10-05T09:53:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-02T09:53:21.000Z (almost 5 years ago)
- Last Synced: 2025-03-19T09:14:16.392Z (about 1 month ago)
- Topics: crud, json-api, observable, redux, redux-observable, rxjs
- Language: TypeScript
- Homepage:
- Size: 1.53 MB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Observables + Redux + JSON API
[](https://greenkeeper.io/)
[](https://www.npmjs.com/package/observable-redux-json-api)
[](https://travis-ci.org/kristerkari/observable-redux-json-api)
[](https://ci.appveyor.com/project/kristerkari/observable-redux-json-api/branch/master)
[](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github)This library is intended for use in web applications build on Redux, which consumes data from a [JSON API](http://jsonapi.org/).
Use **observable-redux-json-api** to have one simple way of storing resource objects in Redux state along with it's CRUD API, which provides easy ways to create, read, update and delete resources.
**observable-redux-json-api** is a library based on [redux-json-api](https://github.com/stonecircle/redux-json-api) (big thanks to them).
The main difference is that instead of [Promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) it uses [RxJS Observables](http://reactivex.io/rxjs/) for all its [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) methods.
Observables give you better control of the network requests compared to promises. You can for example easily cancel or retry the requests using RxJS.
## Why should you use observable-redux-json-api instead of redux-json-api?
✓ Compatible with [Typescript](https://www.typescriptlang.org/) (includes type definitions).
✓ ECMAScript 5 compatible, no need to add polyfills for browsers that do not support ECMAScript 6.
✓ You can easily cancel or retry network requests using RxJS.
✓ Compatible with [redux-observable](https://redux-observable.js.org/).# Table of contents
1. [Set-Up & Configure](docs/set-up-configure.md)
1. [API](docs/api.md)
1. [Example app](https://github.com/kristerkari/observable-redux-json-api-example)
1. [Typescript example app](https://github.com/kristerkari/observable-redux-json-api-typescript-example)