Building Production-Ready APIs With Node.js

  • 1,946 views
Uploaded on

Learn how to build an API using Node.js and open source tools. We will show how to construct a simple API, how to add OAuth authorization and other features, and how to deploy it to Apigee.

Learn how to build an API using Node.js and open source tools. We will show how to construct a simple API, how to add OAuth authorization and other features, and how to deploy it to Apigee.

More in: Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,946
On Slideshare
0
From Embeds
0
Number of Embeds
4

Actions

Shares
Downloads
75
Comments
0
Likes
5

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Building APIs with Node.js Greg Brail, Scott Ganyo and Kevin Swiber
  • 2. Overview • • • • Introduction to the stack Building a simple API Deploying it Adding API Features using Volos 2
  • 3. Introduction to the Stack 3
  • 4. Node.js Stack • API Middleware – Volos • Web app and API framework – Argo – Express – others • Runtime – Node.js – Trireme
  • 5. Node.js • • • • Server-side platform for JavaScript Support for HTTP(s) Scalable and fast Huge third-party community
  • 6. Argo • A framework for APIs • A framework for proxies • Middleware support 6
  • 7. Volos • Node.js modules for API management – – – – OAuth Quota Cache more to come • MIT License • Multiple back ends 7
  • 8. Demo: Building a Simple API 8
  • 9. Apigee Support
  • 10. Node.js Support in Apigee • Deploy Node.js applications to Apigee – Directly from UI – From source code • Third party module support • Combine with other policies
  • 11. Using the Apigee UI • Demo… 11
  • 12. Deploying to Apigee • Demo… 12
  • 13. Volos 13
  • 14. Introduction to Volos • OAuth 2.0 – Add OAuth 2.0 authorization support to any API – Redis back end – Apigee back end – makes API calls to Apigee • Quota – Count API calls by time and by any identifier (API key, etc.) – Local back end (in memory) – Apigee back end • Cache – Cache arbitrary data – Local back end (in memory) – Redis and Apigee in the works • More to come – Open source…
  • 15. Volos Modules • Add a quota to the app using the volos-quota module • Deploy it to Apigee 15
  • 16. Demo: Basic Volos App 16
  • 17. Demo: More Complete App
  • 18. We would love your feedback! Don’t forget to fill out the session’s survey – found in the session details on the conference app #iloveapis Thank you