miappio-sdk

miapp.io client SDK


Keywords
miapp.io, mobile, angular, ng, ionic, integration, couchdb, jwt, miapp-io, user-management
License
MIT
Install
bower install miappio-sdk

Documentation

Build Status NPM version Bower version

Install | APIs | Support | Thanks!

1) You're an app builder

Thank you for building great app. Miapp.io will support you to manager auth, session storage.

Easiest way

From scratch, with yeoman like described here : https://github.com/miappio/miappio-sdk/wiki/How-build-a-freemium-angular-mobile-application-in-10-minutes

yo miappio

Normal way

Install with NPM :

npm install miappio-sdk --save

Or Bower :

bower install miappio-sdk

Then look at APIs and integration patterns described in https://miappio.github.io/miappio-sdk/

or in brief (if your familiar with promise) :

// init your app
miappService.init('MiappId from https://miapp.io')
.then(function() {
    // login (auto register) your user
    return miappService.login('login', 'password');
})
.then(function() {
    // synchronise your session data
    return miappService.sync();
})
.then(function() {
    // put your data into session, 
    // it will be available everywhere but also offline
    return miappService.put({data : 'my session'});
})
//... sync, get data and so on
.catch(function(err) {
    alert(err);
    miappService.logout();
});

2) You're a miapp.io dev

Thank you for your support !

Miapp.io is an Open Source project - we need you to provide great tools to great apps.

Develop

Fork the project

git clone https://github.com/miappio/miappio-sdk.git
cd miappio-sdk
npm install

and pull request ...

Testing

With npm :

$ npm test

With a swagger UI :
https://app.swaggerhub.com/api/mlefree/miapp-io_rest_api/

Thanks

@miapp.io @mat_cloud