rocketpack

0.0.3 • Public • Published

rocketpack-sdk-js

Javascript SDK for Rocket Pack Services

Quick Start

Installation

$ npm install rocketpack --save

Initialization

import rocketpack from 'rocketpack'
rocketpack.init({ key: 'YOUR-PROJECT-KEY' })

Data Services

const peopleCollection = rocketpack.dataService().collection('people')
let peopleItems = peopleCollection.find()

Authentication Services

const auth = rocketpack.authService()
 
// register a user
function registerUser(username, password, metadata) {
  auth.register({
    username: username,
    password: password,
    claims: Object.keys(obj).map((key) => ({name: key, value: obj[key]})
  })
}

Thanks

Thanks a lot to @cpojer for his kindness for transfering the ownership of the rocketpack npm package.

Package Sidebar

Install

npm i rocketpack

Weekly Downloads

5

Version

0.0.3

License

MIT

Unpacked Size

166 kB

Total Files

4

Last publish

Collaborators

  • mostafatech