<commit_before># Azure Mobile Apps - Node SDK

**This package is still in development!** This software is still likey to change dramatically and have minimal documentation prior to official release. Use caution before using this in a production application.

The Azure Mobile Apps Node.js SDK is an [express](http://expressjs.com/) middleware package which makes it easy to create a backend for your mobile application and get it running on Azure.

```js
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 all default settings

app.use(mobileApp);
app.listen(process.env.PORT || 3000);
```

## Installation

`npm install --save azure/azure-mobile-apps-node`

```json
"dependencies": {
  "azure-mobile-apps":"azure/azure-mobile-apps-node"
}
```

An official npm package will be published soon.

## Documentation & Resources

 - [API Documentation](https://azure.github.io/azure-mobile-apps-node)
 - [Tutorials & How-Tos](https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-value-prop-preview/)
 - [StackOverflow #azure-mobile-services](http://stackoverflow.com/questions/new/azure-mobile-services?show=all&sort=recentlyactive&pageSize=50)
 - [MSDN Forums](https://social.msdn.microsoft.com/forums/azure/en-US/home?forum=azuremobile)
 - [Client & Server Quickstarts](https://github.com/Azure/azure-mobile-services-quickstarts)

## Quickstart

0. Create a new directory, initialize git, and initialize npm

  `mkdir quickstart`

  `git init`

  `npm init`

0. Install (with npm) the azure-mobile-apps and express packages

  `npm install express azure/azure-mobile-apps-node --save`

0. Create a server.js file and add the following code to the file:

  ```js
  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 all default settings

  app.use(mobileApp);
  app.listen(process.env.PORT || 3000);
  ```

0. Run your project locally with `node server.js`
<commit_msg>Updated for npm publication<commit_after># Azure Mobile Apps - Node SDK

**This package is still in development!** This software is still likely to change dramatically and have minimal documentation prior to official release. Use caution before using this in a production application.

The Azure Mobile Apps Node.js SDK is an [express](http://expressjs.com/) middleware package which makes it easy to create a backend for your mobile application and get it running on Azure.

```js
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 all default settings

app.use(mobileApp);
app.listen(process.env.PORT || 3000);
```

## Installation

`npm install --save azure-mobile-apps`

```json
"dependencies": {
  "azure-mobile-apps":"azure/azure-mobile-apps-node"
}
```

An official npm package will be published soon.

## Documentation & Resources

 - [API Documentation](https://azure.github.io/azure-mobile-apps-node)
 - [Tutorials & How-Tos](https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-value-prop-preview/)
 - [StackOverflow #azure-mobile-services](http://stackoverflow.com/questions/new/azure-mobile-services?show=all&sort=recentlyactive&pageSize=50)
 - [MSDN Forums](https://social.msdn.microsoft.com/forums/azure/en-US/home?forum=azuremobile)
 - [Client & Server Quickstarts](https://github.com/Azure/azure-mobile-services-quickstarts)

## Quickstart

0. Create a new directory, initialize git, and initialize npm

  `mkdir quickstart`

  `git init`

  `npm init`

0. Install (with npm) the azure-mobile-apps and express packages

  `npm install express azure-mobile-apps --save`

0. Create a server.js file and add the following code to the file:

  ```js
  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 all default settings

  app.use(mobileApp);
  app.listen(process.env.PORT || 3000);
  ```

0. Run your project locally with `node server.js`

{'fraction_non_alphanumeric': 0.12349989090115644, 'fraction_numerical': 0.006109535238926467, 'mean_word_length': 4.418439716312057, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6656524', 'n_tokens_mistral': 1380, 'n_tokens_neox': 1296, 'n_words': 445}