Socket
Book a DemoInstallSign in
Socket

mobileservice-dbinit

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobileservice-dbinit

Database initializer for Azure Mobile Service

latest
npmnpm
Version
0.0.2
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

mobile-services-dbinit

Database initializer for Azure Mobile Service Node Backend that can create tables in your database corresponding to metadata (.json) files in your service/tables folder automatically. This allows you to create tables only by creating json files instead of using azure cli or portal.

Installation

Clone your Mobile Service repository and install the npm module in the 'service' folder

$ npm install mobileservice-dbinit

Get Started

Create a startup.js script in extensions directory with following code:

module.exports.startup = function (context, done) {
    // calling db initializer asynchronously to avoid delaying the startup of app
    require('mobileservice-dbinit')(context);
    done();
}

That's it and from now on you can just create .json files in your tables folder and access them from REST API of your Mobile Service.

Keywords

azure

FAQs

Package last updated on 10 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts