@yellowlabs/sdk

YL SDK
402
Install
npm install @yellowlabs/sdk
Latest Version:0.7.1
License:MIT
Last Updated:Jan 30, 2018
Links: Bitbucket  ·  npm
Maintainer: yellowlabs

js-semistandard-style

Yellow Labs SDK

Yellow labs is a learning materials creation (collaboration) and distribution platform. This is the Javascript SDK for developing yellow labs app.

Installation and Usage

$ cd <project-directory>
$ yarn add fireabse @yl/sdk
import ylSdk from '@yl/sdk';

// initialize the sdk
const rethinkConfig = {
  // ...other configs
};

ylSdk.initilize({ rethinkConfig });

// observe the current user
ylSdk.auth().currentUser$(console.log);

// signin
ylSdk.auth().signin('local', { email: 'my@email.com', password: 'some-passwrd' })

Services

  • accounts - mmSdk.accounts()
  • auth - mmSdk.auth()
  • badges - mmSdk.badges()
  • core - mmSdk.core()
  • curricula - mmSdk.curricula()
  • materials - mmSdk.materials()
  • organizations - mmSdk.organizations()

see docs for more info

  • @yl/sdk-vue - vue-plugin implemented sdk that integrates well with vuex (store/state-persistence) and vue-router (guards)
$ cd <project-directory>>
$ yarn add vue vuex vue-router firebase @yl/{sdk,sdk-vue}
import Vue from 'vue';
import Vuex from 'vuex';
import VueRouter from 'vue-router';
import YlSdk from '@yl/sdk-vue';

const store = new Vuex();
const router = new VueRouter();

Vue.use(YlSdk, { store, router })

Related Packages

ey-template-vue3

vue3代码生成器

3,045
@ibiz-template/vue3

vue3代码生成器

2,984
ibiz-vue3-template

vue3代码生成器

962
vite-plugin-vue-meta-layouts

vite 的 vue-router 的元信息布局系统

314,627 65

Version History

Version Released License
0.7.1 MIT
0.6.0 MIT
0.4.0 MIT
0.3.0 MIT
0.2.0 MIT