backand / reduxbknd-sdk

Backand SDK for Redux. This SDK enables you to communicate comfortably and quickly with your Backand app
https://www.backand.com
2 stars 0 forks source link

reduxbknd-sdk

NOTE - This SDK is deprecated, please use our new SDK at https://github.com/backand/vanilla-sdk

npm version npm downloads

Backand SDK for Redux. This SDK enables you to communicate comfortably and quickly with your Backand app. It wraps the vanillabknd-sdk to allow easier work on projects involving Redux.

Installation

createStore(rootReducer, initialState, applyMiddleware(thunk))

- Use `npm run generate OBJ` to generate `Types`,`Actions`,`Reducers` for your Backand objects:
```bash
$ cd ./node_modules/reduxbknd-sdk/
$ npm run generate obj1 obj2 obj3... (CREATE OBJECTS)
$ npm run generate mode=del obj1 obj2 obj3... (DELETE OBJECTS)

combineReducers({ user, obj1, obj2 })

- Import `Actions` and dispatch them happily! :smile:
```javascript
import { getUserDetails, signin, useAnonymousAuth, signout } from './node_modules/reduxbknd-sdk/src/auth/authActions'

store.dispatch(signin(username, password))
store.dispatch(getUserDetails())

Examples

License

MIT