0.17.0 • Published 6 years ago

sling-web-sdk v0.17.0

Weekly downloads
148
License
-
Repository
-
Last release
6 years ago

sling-web-sdk

Travis npm package Coveralls

The sling-web-sdk is a front-end layer of abstraction for communicating with all kinds of back-end services. Built with Redux, it's usable in any framework in the front-end, now and in the future.

Usage

npm install --save sling-web-sdk

Store

Import and pass the store to your application. This step depends on the framework (or the lack of) that you are using, but in most cases, you can just import it at the entry point.

import { Store } from 'sling-web-sdk';

Actions

The actions are generic functions that, most of the time, consume endpoints and populate data. For example, the globalActions contains the login action.

The login action in particular will call the stabilished endpoint and set the token at the localStorage. To use it, you just have to:

import { Store,  globalActions } from 'sling-web-sdk';

Store.dispatch(globalActions.logIn('user@email.com', 'userpass');

By default this action will point to the portal API.

0.17.0

6 years ago

0.16.0

6 years ago

0.15.1

6 years ago

0.15.0

6 years ago

0.14.1

6 years ago

0.14.0

6 years ago

0.13.2

6 years ago

0.13.1

6 years ago

0.13.0

6 years ago

0.12.0

6 years ago

0.11.0

6 years ago

0.10.1

6 years ago

0.10.0

6 years ago

0.9.0

6 years ago

0.8.0

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.36

6 years ago

0.2.34

6 years ago

0.2.32

6 years ago

0.2.31

6 years ago

0.2.30

6 years ago

0.2.29

6 years ago

0.2.28

6 years ago

0.2.27

6 years ago

0.2.26

6 years ago

0.2.25

6 years ago

0.2.24

6 years ago

0.2.23

6 years ago

0.2.22

6 years ago