0.6.0-alpha.0 • Published 6 years ago

@mightyminds/sdk v0.6.0-alpha.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

js-semistandard-style Conventional Commits Commitizen friendly

Mighty Minds SDK

Mighty minds is a crowd-funding platform designed to help students. This is the Javascript SDK for developing mightyminds app.

Installation and Usage

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

// initialize the sdk
const firebaseConfig = {
  apiKey: 'some-api-key',
  databaseURL: 'some-database-url',
  // ...other configs
};

sdk.initilize({ firebaseConfig });

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

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

Services

  • accounts - sdk.accounts()
  • auth - sdk.auth()
  • beneficiaries - sdk.beneficiaries()
  • core - sdk.core()
  • fundings - sdk.fundings()
  • timelines - sdk.timelines()

see docs for more info

Related npm modules

  • @mightyminds/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 @mightyminds/{sdk,sdk-vue}
import Vue from 'vue';
import Vuex from 'vuex';
import VueRouter from 'vue-router';
import Sdk from '@mightyminds/sdk-vue';

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

Vue.use(Sdk, { store, router })
0.6.0-alpha.0

6 years ago

0.5.3-alpha.3

6 years ago

0.5.3-alpha.2

6 years ago

0.5.3-alpha.1

6 years ago

0.5.3-alpha.0

6 years ago

0.5.2

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago