Build a REST API for your Mobile Apps using Node.js

12
BUILD A REST API FOR YOUR MOBILE APPS WITH NODE.JS Edward Jiang

Transcript of Build a REST API for your Mobile Apps using Node.js

Page 1: Build a REST API for your Mobile Apps using Node.js

BUILD A REST API FOR YOUR MOBILE APPS WITH NODE.JS

Edward Jiang

Page 2: Build a REST API for your Mobile Apps using Node.js

HI, I’M EDWARD!

@EdwardStarcraftDeveloper Evangelist @goStormpath

Page 3: Build a REST API for your Mobile Apps using Node.js

DEVELOPER TOOLS FOR AUTHENTICATION

• Stormpath — Authentication as a Service

• Web Framework Integrations — Authentication in your web framework of choice

• Apache Shiro — Java security framework

• JWTK — JWT libraries for JavaScript & Java

• Simplicity — Easy social login for iOS

• Turnstile — Authentication framework for server-side Swift

Page 4: Build a REST API for your Mobile Apps using Node.js

USERS STORMPATH INTEGRATIONS

Page 5: Build a REST API for your Mobile Apps using Node.js

TA S K

B U I L D A R E S T A P I F O R A N O T E TA K I N G A P P ( L I K E E V E R N O T E ! )

Page 6: Build a REST API for your Mobile Apps using Node.js
Page 7: Build a REST API for your Mobile Apps using Node.js

API ENDPOINTS• Authentication

• POST /register - create a user account

• POST /oauth/token - get an access token for our API

• Application

• GET /notes - retrieve the current user’s notes from our API

• POST /notes - save the current user’s notes to the API

Page 8: Build a REST API for your Mobile Apps using Node.js

TOOLS

Page 9: Build a REST API for your Mobile Apps using Node.js

LET’S START BUILDING!

Page 10: Build a REST API for your Mobile Apps using Node.js

FINISHED RESULT

• Hosted online at https://stormpathnotes.herokuapp.com

• GitHub: https://github.com/stormpath/stormpath-express-mobile-notes-example

• Review this tutorial: https://stormpath.com/blog/tutorial-build-rest-api-mobile-apps-using-node-js

Page 11: Build a REST API for your Mobile Apps using Node.js

WHAT NEXT?

• Try the iOS counterpart: https://stormpath.com/blog/build-note-taking-app-swift-ios

• Try the Android counterpart: https://stormpath.com/blog/build-user-authentication-for-android-app

• Talk to us! Email [email protected], or [email protected]

Page 12: Build a REST API for your Mobile Apps using Node.js

QUESTIONS?