Socket
Socket
Sign inDemoInstall

mobileservice-dbinit

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mobileservice-dbinit

Database initializer for Azure Mobile Service


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
11.7 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 10 Sep 2014

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc