
Explanation/Reference:
Explanation:
Quickstart
1. Create a new directory, initialize git, and initialize npm
mkdir quickstart
cd quickstart
git init
npm init --yes
2. Install (with npm) the azure-mobile-apps and express packages
npm install express azure-mobile-apps --save
3. Create a suitable .gitignore file. You can generate a suitable .gitignore file using the generator at gitignore.io
4. Create a server.js file and add the following code to the file (or use the code from one of our samples):
var app = require('express')(); // Create an instance of an Express app var mobileApp = require('azure-mobile-apps')(); // Create an instance of a Mobile App with default settings mobileApp.tables.add('TodoItem'); // Create a table for 'TodoItem' with default settings app.use(mobileApp); app.listen(process.env.PORT || 3000);
5. Run your project locally with node server.js
6. Publish your project to an existing Azure Mobile App by adding it as a remote and pushing your changes.
References: https://azure.github.io/azure-mobile-apps-node/