Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reduxbknd-sdk

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reduxbknd-sdk

Backand SDK for Redux

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

reduxbknd-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

  • NPM:
$ npm i -S reduxbknd-sdk
import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'

createStore(rootReducer, initialState, applyMiddleware(thunk))
  • Use npm run generate OBJ to generate Types,Actions,Reducers for your Backand objects:
$ cd ./node_modules/reduxbknd-sdk/
$ npm run generate obj1 obj2 obj3... (CREATE OBJECTS)
$ npm run generate mode=del obj1 obj2 obj3... (DELETE OBJECTS)
import { combineReducers } from 'redux'
import user from './node_modules/reduxbknd-sdk/src/auth/authReducer'
import obj1 from './node_modules/reduxbknd-sdk/src/obj1/obj1Reducer'
import obj2 from './node_modules/reduxbknd-sdk/src/obj2/obj2Reducer'

combineReducers({
  user,
  obj1,
  obj2
})
  • Import Actions and dispatch them happily! :smile:
import { getUserDetails, signin, useAnonymousAuth, signout } from './node_modules/reduxbknd-sdk/src/auth/authActions'

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

Examples

License

MIT

FAQs

Package last updated on 21 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc