Building APIs Using Hapi in Node.js

Building APIs Using Hapi in Node.js

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 2h 23m | 351 MB

With the current, mobile-first approach to development, it’s crucial that you have a good API for your mobile and web projects. In this interactive, project-based course, learn how to create a RESTful API with Node.js and Hapi, a popular framework for building and consuming APIs, as well as how to interact with the MongoDB. Follow Kirsten Hunter as she covers the fundamentals of web API technologies, including the basics of HTTP transactions and how REST APIs work over HTTP connections. After this general review, she helps to bring the concepts home by guiding you, step-by-step, through building an application that integrates with the Fitbit system.

Topics include:

  • Setting up the development environment
  • Consuming an API using HTTPie
  • Inspecting Mongo data
  • Updating the server for MongoDB read functionality
  • Setting up application endpoints
  • Implementing user endpoints, progress endpoints, and promises
Table of Contents

1 Welcome
2 What you need to know
3 Exercise files
4 Technology stack
5 Useful tools
6 Setting up the development environment
7 Hapi hello world
8 HTTP fundamentals
9 REST API basics
10 API example in Hapi
11 Consuming an API using HTTPie
12 MongoDB overview
13 Sample data import
14 Inspecting the Mongo data
15 Update the server for MongoDB read functionality
16 Add write functionality to the sample code
17 Get set up with Fitbit
18 Create an authentication flow
19 Storing data in MongoDB
20 Set up application endpoints
21 Implement user endpoints
22 Implement progress endpoints
23 Implement promises
24 Additional interactions
25 Subscriptions
26 Next steps