Nick Landry
Senior Technical Evangelist – Microsoft
nick.landry@microsoft.com
Blog: AgeofMobility.com
@ActiveNick | github.com/ActiveNick
Building a Node.js Mobile App Backend
in the Cloud for Android Apps
(for iOS, Windows & Web Apps too)
DroidCon NYC 2015
Microsoft
loves Android
devs
Xamarin
Build fully-native
Android apps in C#
Azure
Native SDKs to cloud-
enable your Java and
C# Android apps
“Project Astoria”
Bring your Java/C++
Android code to
Windows apps









Session Agenda
*not including those purely doing it for fun or learning purposes
Developer Economics | State of the Developer Nation Q1 2015 | © VisionMobile – http://vmob.me/DE1Q15
Clutch Survey | Cost to Build a Mobile App, Jan 2015 | © Clutch – http://bit.ly/1KTu2vj
Running Your Stuff in the Cloud
Microsoft
Azure
Free Software & Cloud Services
Are you…
• A tech entrepreneur?
• A software startup owner
or partner?
• A developer moonlighter?
• An independent…
• Software dev consultant?
• Mobile app developer?
• Game developer?
• Website designer/builder?
With BizSpark you get…
• MSDN Ultimate Sub.
• $750 per month in Azure
credits (across 5 users)
• Visual Studio Enterprise
• Office 365 Subscription
• 11TB of Microsoft software
• All free!
BizSpark
BizSpark
3 years of
Microsoft software:
MSDN Ultimate
Subscriptions
$150 / month in
Azure cloud credits.
Office 365 Developer
Up to 5 users per
BizSpark account
per startup
Technical & product
support. Offers from
network partners
Marketing visibility.
Events. Ecosystem
Connections.
http://aka.ms/bizsparkapply
Cloud Computing Models
App Service - one integrated offering
API Apps
Easily build and consume
APIs in the cloud
Web Apps
Web apps that scale
with your business
Mobile Apps
Build Mobile apps
for any device
LOGIC Apps
Automate business process
across SaaS and on-premises
App Service Application Composition
Web Apps Mobile AppsLOGIC Apps
API Apps
Node.js
Express
.NET
Web API
SQL Table
Storage
Blob
Storage
WNS &
MPNS
APNS GCM
Mongo
DB
Notification
Hubs
Source
Control
Facebook Twitter Microsoft Google Azure Active
Directory
Windows Store
iOS
Android
Xamarin
Phonegap
Sencha
Windows Phone
iOS
Android
HTML 5/JS
SDKs
RESTAPI
Hybrid
Connections
Azure Mobile Services is now App Services
Action HTTP Verb URL Suffix
Create POST /TodoItem
Read GET /TodoItem?$filter=id%3D42
Update PATCH /TodoItem/id
Delete DELETE /TodoItem/id
Data Operations and their REST Equivalents
Base REST API Endpoint URL
https://mymobileservice.azure-mobile.net/tables/*
Odata protocol
LINQ support for
the C# SDK
A Basic table
Demo:
Azure Mobile Services
Push notification lifecycle
Registration at app launch
1.
2.
Sending Notification
1.
2.
Maintenance
1.
Platform
Notification
Service
App back-end
Challenges of push notifications







Using Notification Hubs
One-time set up
1.
Register
1.
2.
Send Notification
1.
2.
APNsWNS
Notification Hub
App back-end
iOS app Windows app
MPNS
GCM
ADM
Demo:
Push Notifications







Advantages of using Notification Hubs





Summary
free cloud development courses
Try Microsoft Azure for free
AzureAppService for free
Cloud Resources
Technical Resources for Cloud Devs

http://aka.ms/trymsazure
 https://manage.windowsazure.com
 https://portal.azure.com/

http://channel9.msdn.com/Shows/Cloud+Cover
 http://friday.azure.com

http://aka.ms/azurechatrblog
 http://www.visualstudio.com
Watch all sessions on demand at
http://channel9.msdn.com/events/build/2015
Online Microsoft training delivered by experts to
help technologists continually learn
Hundreds of courses for developers, IT Pros,
students, entrepreneurs and enthusiasts
11 different languages
Over 3M students registered
Build your own Learning Plan
All free!
http://www.microsoftvirtualacademy.com
 Universal Windows App Development
with Cortana and the Speech SDK






 Available for on-demand viewing now:
 http://aka.ms/CortanaMVA
Thank You!
Slides will be posted on SlideShare. Demos are in GitHub.
Slideshare: www.slideshare.net/ActiveNick
Blog: www.AgeofMobility.com
Twitter: @ActiveNick
Mobile Apps: www.bigbaldapps.com
LinkedIn: www.linkedin.com/in/activenick
GitHub: github.com/ActiveNick
Email: nick.landry@microsoft.com

Building a Node.js Backend in the Cloud for Android Apps

  • 1.
    Nick Landry Senior TechnicalEvangelist – Microsoft nick.landry@microsoft.com Blog: AgeofMobility.com @ActiveNick | github.com/ActiveNick Building a Node.js Mobile App Backend in the Cloud for Android Apps (for iOS, Windows & Web Apps too) DroidCon NYC 2015
  • 4.
    Microsoft loves Android devs Xamarin Build fully-native Androidapps in C# Azure Native SDKs to cloud- enable your Java and C# Android apps “Project Astoria” Bring your Java/C++ Android code to Windows apps
  • 5.
  • 6.
    *not including thosepurely doing it for fun or learning purposes Developer Economics | State of the Developer Nation Q1 2015 | © VisionMobile – http://vmob.me/DE1Q15
  • 8.
    Clutch Survey |Cost to Build a Mobile App, Jan 2015 | © Clutch – http://bit.ly/1KTu2vj
  • 9.
    Running Your Stuffin the Cloud Microsoft Azure
  • 10.
    Free Software &Cloud Services Are you… • A tech entrepreneur? • A software startup owner or partner? • A developer moonlighter? • An independent… • Software dev consultant? • Mobile app developer? • Game developer? • Website designer/builder? With BizSpark you get… • MSDN Ultimate Sub. • $750 per month in Azure credits (across 5 users) • Visual Studio Enterprise • Office 365 Subscription • 11TB of Microsoft software • All free!
  • 11.
    BizSpark BizSpark 3 years of Microsoftsoftware: MSDN Ultimate Subscriptions $150 / month in Azure cloud credits. Office 365 Developer Up to 5 users per BizSpark account per startup Technical & product support. Offers from network partners Marketing visibility. Events. Ecosystem Connections. http://aka.ms/bizsparkapply
  • 12.
  • 13.
    App Service -one integrated offering API Apps Easily build and consume APIs in the cloud Web Apps Web apps that scale with your business Mobile Apps Build Mobile apps for any device LOGIC Apps Automate business process across SaaS and on-premises
  • 14.
    App Service ApplicationComposition Web Apps Mobile AppsLOGIC Apps API Apps
  • 15.
    Node.js Express .NET Web API SQL Table Storage Blob Storage WNS& MPNS APNS GCM Mongo DB Notification Hubs Source Control Facebook Twitter Microsoft Google Azure Active Directory Windows Store iOS Android Xamarin Phonegap Sencha Windows Phone iOS Android HTML 5/JS SDKs RESTAPI Hybrid Connections Azure Mobile Services is now App Services
  • 16.
    Action HTTP VerbURL Suffix Create POST /TodoItem Read GET /TodoItem?$filter=id%3D42 Update PATCH /TodoItem/id Delete DELETE /TodoItem/id Data Operations and their REST Equivalents Base REST API Endpoint URL https://mymobileservice.azure-mobile.net/tables/* Odata protocol LINQ support for the C# SDK A Basic table
  • 17.
  • 18.
    Push notification lifecycle Registrationat app launch 1. 2. Sending Notification 1. 2. Maintenance 1. Platform Notification Service App back-end
  • 19.
    Challenges of pushnotifications       
  • 20.
    Using Notification Hubs One-timeset up 1. Register 1. 2. Send Notification 1. 2. APNsWNS Notification Hub App back-end iOS app Windows app MPNS GCM ADM
  • 21.
  • 22.
  • 23.
  • 24.
    free cloud developmentcourses Try Microsoft Azure for free AzureAppService for free Cloud Resources
  • 25.
    Technical Resources forCloud Devs  http://aka.ms/trymsazure  https://manage.windowsazure.com  https://portal.azure.com/  http://channel9.msdn.com/Shows/Cloud+Cover  http://friday.azure.com  http://aka.ms/azurechatrblog  http://www.visualstudio.com
  • 26.
    Watch all sessionson demand at http://channel9.msdn.com/events/build/2015
  • 27.
    Online Microsoft trainingdelivered by experts to help technologists continually learn Hundreds of courses for developers, IT Pros, students, entrepreneurs and enthusiasts 11 different languages Over 3M students registered Build your own Learning Plan All free! http://www.microsoftvirtualacademy.com
  • 28.
     Universal WindowsApp Development with Cortana and the Speech SDK        Available for on-demand viewing now:  http://aka.ms/CortanaMVA
  • 29.
    Thank You! Slides willbe posted on SlideShare. Demos are in GitHub. Slideshare: www.slideshare.net/ActiveNick Blog: www.AgeofMobility.com Twitter: @ActiveNick Mobile Apps: www.bigbaldapps.com LinkedIn: www.linkedin.com/in/activenick GitHub: github.com/ActiveNick Email: nick.landry@microsoft.com