miappio-sdk
TypeScript icon, indicating that this package has built-in type declarations

2.1.9 • Public • Published

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

Package Sidebar

Install

npm i miappio-sdk

Weekly Downloads

120

Version

2.1.9

License

MIT

Unpacked Size

2.29 MB

Total Files

78

Last publish

Collaborators

  • mlefree