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

sling-web-sdk

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sling-web-sdk

A front end SDK built with Redux and Axios

  • 0.15.1
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 24 Aug 2018

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