APIs in minutes with Node.js 
Shubhra Kar 
Director Products 
@shubhrakar 
Oct 2014
The Frontend is changing fast (Mobile First !)
And it isn’t done yet !
APIs are powering this change 
4 
SaaS Mobile IoT 
SOA 
Web 
App Server 
Database Datacube 
API Server 
HTML JSON
What tech is should I use for APIs ? 
5 
Node is FAST 
…and highly concurrent! 
Node is perfect for APIs 
Node powers full-stack JS
Hybrid App: Full Stack JavaScript! 
Ionic 
Bootstrap Angular 
Cordova 
A Compelling Option for Enterprise Mobility 
 Faster time to market vs. 100% native development 
Gartner predicts by 2016 more than 50% of 
 Reuse skills of existing web developer staff 
the apps deployed will be Hybrid apps. 
 Open Source stack / no vendor lock-in 
 For Enterprise http://www.apps, gartner.performance com/newsroom/is comparable id/2324917 
to 
native apps 
 Near “write once, run anywhere” UI: tablets, phones, 
smart TVs, smart watches, cars, etc. 
LoopBack 
API Server 
Node.js
Why Node.js? 
• Lots of JavaScript programmers out there (>62K) 
• Very large and active developer community 
• Has the most modules (100K > Java)
Threads 
Don’t Wait !
Nodies are not just silicon valley hipsters ! 
And most recently….
But how do I cross the bridge… 
External Partners Cloud 
RMI Objects 
Messaging 
Service 
BI Tools 
Business 
Rules 
File 
System 
ESB 
Web 
Interface 
Content 
Database 
Data 
Warehouse 
Financials 
Mainframe 
Web/WAP 
Interface 
EJB 
Virtual 
Service 
Routin 
g 
Service 
SOAP 
CRM 
App 
Products 
Collaboration 
App Port 
al 
Help 
Engine 
BPM 
Legacy S 
Infrastructure 
Internal 
Mobile Backend 
??
Where Do We Begin? 
11
1st Gen mBaaS - Parse, StackMob, Kinvey, Apigee, AppC, Kony 
mobile/web 
clients 
social & 
analytics 
JSON API 
mBaaS 
API 
XML 
SQL 
SOAP 
Etc. 
API tier 
(Java, Ruby, PHP, C#) 
MongoDB, mySQL 
Enterprise
APIs in Minutes with Node.js 
Shubhra Kar 
Director – Products & Strategic Alliances 
Oct 2014
StrongLoop is the biggest contributor to Node Core 
14
StrongLoop helps deliver successful APIs 
15 
Reliable API Solutions powered by Node.js 
Compose 
Deploy / Scale 
Monitor 
Secure / Manage 
API Studio Controller StrongOps API Gateway 
Developer Subscription Production Subscription
StrongLoop API Server components 
Express 
API Gateway 
Loopback API Framework 
Controller (Mesh) 
Strong-agent – Monitoring 
Connectors to enterprise 
systems 
Commercial Support 
Training/Consulting
StrongLoop API Server (On-Premises or Cloud) 
PUSH 
REST 
API 
GEO 
OFF 
SYNC 
DEVICE 
USER FILE 
Storage 
REST 
API 
GATEWAY 
Channel SDKs 
ORM 
API ENGINE 
C 
O 
N 
N 
E 
C 
T 
O 
R 
s 
A 
P 
I 
S 
D 
K 
s 
REST API 
API 
Explorer 
Debugging, Provisioning, Scaling, Monitoring 
Enterprise Node.js Platform
Loopback Open-source Node.js Framework 
$ slc loopback 
_-----_ 
| | .--------------------------. 
|--(o)--| | Let's create a LoopBack | 
`---------´ | application! | 
( _´U`_ ) '--------------------------' 
/___A___ 
| ~ | 
__'.___.'__ 
´ ` |° ´ Y ` 
 Middleware API Engine 
 ORM 
 Aggregation & Mashups 
 API Explorer (Swagger) 
 Fine Grained Access Control (ACLs) 
 Data Replication 
 IsoMorphic JS and Client SDKs. 
[?] Enter a directory name where to create the project: (.)
API Explorer (Swagger 2.0) and Frontend App Integration
Studio 
 Visual ORM 
 Discovery 
 Migration 
 DEV - API Design & 
Composition 
 OPS – Provisioning, 
Scaling & Monitoring
mBaaS (mobile Backend as a Service) 
 Push Notification 
 GeoLocation 
 Offline Sync 
 3rd Party APIs 
 Device / User Tracking 
 Cloud / File Storage
API Gateway 
 Security (AAA) 
 Mediation and Transformation 
 Infrastructure QoS (pagination, throttling, caching, delivery guarantee, firewall) 
 Analytics and health monitoring 
 Aggregation and Microservices Routing 
 Virtualization and Reverse Proxy
Connectors 
 Connection Management 
 RDBMS, NoSQL, Services, 
BigData, Proprietary 
 Model Discovery 
 Data Replication 
 State Management 
 Storage 
Open Source 
Enterprise 
Storage 
REST
Controller 
 Debugging 
 Build 
 Universal 
 Git 
 Deploy 
 Server Distro 
 Distributed – Mesh 
 Scale 
 State Management
Monitoring 
 Deep Dive Node.js Metrics 
 Dynamic Instrumentation 
 On-Premises and 3rd Party Integration 
 Deep Transaction Tracing 
 Root Cause Analysis
Monitoring – On Premises / 3rd Party consoles 
26
Profiling – On Premises
Error tracking/recovery 
28
Let’s Start 
API Server 
http://strongloop.com/node-js/api-server/ 
Loopback 
http://loopback.io 
Express 
http://expressjs.com/ 
mBaaS 
http://strongloop.com/node-js/mBaaS/ 
Controller 
http://strongloop.com/node-js/controller/ 
Monitoring 
http://strongloop.com/node-js/monitoring/ 
Studio 
http://strongloop.com/node-js/studio-beta/
FirstT thherae nwaks Nyoodeu!

Triangle Node Meetup : APIs in Minutes with Node.js

  • 1.
    APIs in minuteswith Node.js Shubhra Kar Director Products @shubhrakar Oct 2014
  • 2.
    The Frontend ischanging fast (Mobile First !)
  • 3.
    And it isn’tdone yet !
  • 4.
    APIs are poweringthis change 4 SaaS Mobile IoT SOA Web App Server Database Datacube API Server HTML JSON
  • 5.
    What tech isshould I use for APIs ? 5 Node is FAST …and highly concurrent! Node is perfect for APIs Node powers full-stack JS
  • 6.
    Hybrid App: FullStack JavaScript! Ionic Bootstrap Angular Cordova A Compelling Option for Enterprise Mobility  Faster time to market vs. 100% native development Gartner predicts by 2016 more than 50% of  Reuse skills of existing web developer staff the apps deployed will be Hybrid apps.  Open Source stack / no vendor lock-in  For Enterprise http://www.apps, gartner.performance com/newsroom/is comparable id/2324917 to native apps  Near “write once, run anywhere” UI: tablets, phones, smart TVs, smart watches, cars, etc. LoopBack API Server Node.js
  • 7.
    Why Node.js? •Lots of JavaScript programmers out there (>62K) • Very large and active developer community • Has the most modules (100K > Java)
  • 8.
  • 9.
    Nodies are notjust silicon valley hipsters ! And most recently….
  • 10.
    But how doI cross the bridge… External Partners Cloud RMI Objects Messaging Service BI Tools Business Rules File System ESB Web Interface Content Database Data Warehouse Financials Mainframe Web/WAP Interface EJB Virtual Service Routin g Service SOAP CRM App Products Collaboration App Port al Help Engine BPM Legacy S Infrastructure Internal Mobile Backend ??
  • 11.
    Where Do WeBegin? 11
  • 12.
    1st Gen mBaaS- Parse, StackMob, Kinvey, Apigee, AppC, Kony mobile/web clients social & analytics JSON API mBaaS API XML SQL SOAP Etc. API tier (Java, Ruby, PHP, C#) MongoDB, mySQL Enterprise
  • 13.
    APIs in Minuteswith Node.js Shubhra Kar Director – Products & Strategic Alliances Oct 2014
  • 14.
    StrongLoop is thebiggest contributor to Node Core 14
  • 15.
    StrongLoop helps deliversuccessful APIs 15 Reliable API Solutions powered by Node.js Compose Deploy / Scale Monitor Secure / Manage API Studio Controller StrongOps API Gateway Developer Subscription Production Subscription
  • 16.
    StrongLoop API Servercomponents Express API Gateway Loopback API Framework Controller (Mesh) Strong-agent – Monitoring Connectors to enterprise systems Commercial Support Training/Consulting
  • 17.
    StrongLoop API Server(On-Premises or Cloud) PUSH REST API GEO OFF SYNC DEVICE USER FILE Storage REST API GATEWAY Channel SDKs ORM API ENGINE C O N N E C T O R s A P I S D K s REST API API Explorer Debugging, Provisioning, Scaling, Monitoring Enterprise Node.js Platform
  • 18.
    Loopback Open-source Node.jsFramework $ slc loopback _-----_ | | .--------------------------. |--(o)--| | Let's create a LoopBack | `---------´ | application! | ( _´U`_ ) '--------------------------' /___A___ | ~ | __'.___.'__ ´ ` |° ´ Y `  Middleware API Engine  ORM  Aggregation & Mashups  API Explorer (Swagger)  Fine Grained Access Control (ACLs)  Data Replication  IsoMorphic JS and Client SDKs. [?] Enter a directory name where to create the project: (.)
  • 19.
    API Explorer (Swagger2.0) and Frontend App Integration
  • 20.
    Studio  VisualORM  Discovery  Migration  DEV - API Design & Composition  OPS – Provisioning, Scaling & Monitoring
  • 21.
    mBaaS (mobile Backendas a Service)  Push Notification  GeoLocation  Offline Sync  3rd Party APIs  Device / User Tracking  Cloud / File Storage
  • 22.
    API Gateway Security (AAA)  Mediation and Transformation  Infrastructure QoS (pagination, throttling, caching, delivery guarantee, firewall)  Analytics and health monitoring  Aggregation and Microservices Routing  Virtualization and Reverse Proxy
  • 23.
    Connectors  ConnectionManagement  RDBMS, NoSQL, Services, BigData, Proprietary  Model Discovery  Data Replication  State Management  Storage Open Source Enterprise Storage REST
  • 24.
    Controller  Debugging  Build  Universal  Git  Deploy  Server Distro  Distributed – Mesh  Scale  State Management
  • 25.
    Monitoring  DeepDive Node.js Metrics  Dynamic Instrumentation  On-Premises and 3rd Party Integration  Deep Transaction Tracing  Root Cause Analysis
  • 26.
    Monitoring – OnPremises / 3rd Party consoles 26
  • 27.
  • 28.
  • 29.
    Let’s Start APIServer http://strongloop.com/node-js/api-server/ Loopback http://loopback.io Express http://expressjs.com/ mBaaS http://strongloop.com/node-js/mBaaS/ Controller http://strongloop.com/node-js/controller/ Monitoring http://strongloop.com/node-js/monitoring/ Studio http://strongloop.com/node-js/studio-beta/
  • 30.

Editor's Notes

  • #11  80% of all new applications are composite based Agile has replaced waterfall as the development method of choice 70% of the information needed by a developer is not available – no access or not owned SaaS and Cloud-powered customer apps have created “instant on” mentality Current platform vendors have no suitable offering for these transformational projects