GithubHelp home page GithubHelp logo

isabella232 / azure-mobile-apps-js-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phvannor/azure-mobile-apps-js-client

0.0 0.0 0.0 5.02 MB

Javascript Clients for Azure Mobile Apps

License: Apache License 2.0

JavaScript 87.15% C# 0.06% HTML 12.71% CSS 0.08%

azure-mobile-apps-js-client's Introduction

Azure Mobile Apps: Javascript Client SDK

With Microsoft Azure Mobile Apps you can add a scalable backend to your connected client applications in minutes. To learn more about Azure Mobile Apps, visit the Mobile Apps documentation.

This repository contains code for the azure-mobile-apps-client npm package and the cordova-plugin-ms-azure-mobile-apps Cordova plugin.

The Cordova plugin is published from the Azure/azure-mobile-apps-cordova-client repository by bundling source code in this repository. Refer Azure/azure-mobile-apps-cordova-client for more details about the Cordova plugin.

The following sections explain how to use the Javascript client SDK. You can also refer How to Use the JavaScript Client Library for Azure Mobile Apps for more details.

Support

The JavaScript client is primarily suited to Apache Cordova uses. Offline Sync is only supported in Apache Cordova situations. We test on the following platforms for Apache Cordova v6.0.0:

  • Android API 19-24 (KitKat through Nougat)
  • iOS versions 8.0 and later.
  • Windows Phone 8.1
  • Universal Windows Platform

The JavaScript client is also usable for data access in web clients. We support any platform that supports ECMAScript 5.1.

Usage instructions

You can consume the SDK in one of the following ways.

  1. Reference the SDK bundle in HTML's script tag
  2. Use the SDK bundle as a CommonJS module
  3. Use the SDK bundle as an AMD module
  4. Use the SDK as an npm package

The latest SDK bundle is available at https://zumo.blob.core.windows.net/sdk/azure-mobile-apps-client.js and https://zumo.blob.core.windows.net/sdk/azure-mobile-apps-client.min.js.

To use a specific version of the SDK (recommended), use the bundle at https://zumo.blob.core.windows.net/sdk/azure-mobile-apps-client.__VERSION__.js or https://zumo.blob.core.windows.net/sdk/azure-mobile-apps-client.__VERSION__.min.js, where _VERSION_ represents a valid version.

Sample usage

Here are a few examples of how you can use the SDK.

Use the SDK as a Javascript bundle

<html>
<head>
    <script src="https://zumo.blob.core.windows.net/sdk/azure-mobile-apps-client.2.0.1.js"></script>
    <script>
        // Create a reference to the Azure App Service
        var clientRef = new WindowsAzure.MobileServiceClient('https://YOUR-SITE-NAME.azurewebsites.net');
    </script>
</head>
</html>

Use the SDK as an npm package

Install the SDK from npm: npm install azure-mobile-apps-client

OR

Install the SDK from github: npm install azure/azure-mobile-apps-js-client

You can now use it in your Javascript code as follows:

var WindowsAzure = require('azure-mobile-apps-client');
// Create a reference to the Azure App Service
var clientRef = new WindowsAzure.MobileServiceClient('https://YOUR-SITE-NAME.azurewebsites.net');

You can bundle your Javascript code using either WebPack or Browserify.

Offline data sync

This page explains the offline data sync feature in detail.

API reference

Refer https://azure.github.io/azure-mobile-apps-js-client for detailed API reference.

SDK downloads

Build instructions

To build the SDK bundle yourself, follow these steps:

git clone https://github.com/Azure/azure-mobile-apps-js-client.git
cd azure-mobile-apps-js-client
npm install
npm run build

The built files will be copied to the /dist directory. The bundles for use by a web app in a browser are azure-mobile-apps-client.js and azure-mobile-apps-client.min.js. The bundle for use by the azure/azure-mobile-apps-cordova-client repository is azure-mobile-apps-client-cordova.js.

Running Unit Tests

To run unit tests for the browser, run:

npm run browserut

Future of Azure Mobile Apps

Microsoft is committed to fully supporting Azure Mobile Apps, including support for the latest OS release, bug fixes, documentation improvements, and community PR reviews. Please note that the product team is not currently investing in any new feature work for Azure Mobile Apps. We highly appreciate community contributions to all areas of Azure Mobile Apps.

Useful Resources

Contribute Code or Provide Feedback

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

If you would like to become an active contributor to this project please follow the instructions provided in Microsoft Azure Projects Contribution Guidelines.

If you encounter any bugs with the library please file an issue in the Issues section of the project.

azure-mobile-apps-js-client's People

Contributors

alrod avatar carlosfigueira avatar danderson00 avatar davidni avatar dhei avatar elamalani avatar guperrot avatar hasankhan avatar iwate avatar marianosz avatar patniko avatar pavinan avatar phvannor avatar pragnagopa avatar pvbchak avatar ruslan-bikkinin avatar shrishrirang avatar soninaren avatar thyeggman avatar toddreifsteck avatar ysxu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.