Mastering REST APIs in Node.js: Zero-To-Hero
Tamas Piros
  • Course duration: 8h 30m
Mastering REST APIs in Node.js: Zero To Hero is a fast-paced primer covering everything you ever wanted to know about REST APIs. Expert instructor Tamas Piros answers your questions about how REST APIs work, how to create them, and how to keep them secure with token-based authentication. You’ll even dive into the GraphQL query language, cutting through the hype to learn how it can help you build more reliable APIs.

Distributed by Manning Publications

This course was created independently by Tamas Piros and is distributed by Manning through our exclusive liveVideo platform.

About the subject

Building reliable APIs has become one of the most lucrative skills you can learn as a developer—and that means learning REST. REST architecture is the de facto choice for modern APIs, thanks to its flexibility, scalability, and small bandwidth demands. If you’ve ever been left puzzling over how REST APIs work, what components you need to create them, or how to start building them using Node.js, this is the course for you.

About the video

Mastering REST APIs in Node.js: Zero To Hero takes you from the very basics of REST APIs, from REST’s architecture and HTTP methods, to adding relational database and/or NoSQL support. After you’ve grasped the essentials, you’ll delve into advanced topics such as covering authentication via tokens, and the cutting-edge GraphQL query language. As an added bonus the final section of the course takes you through implementing the REST API in an example login page application, including setting authentication for users.
Table of Contents detailed table of contents

Introduction to REST

Introduction to REST

HTTP Methods and Status Codes

Why develop (and use) a REST API?

Creating our first REST API

Create a REST API without external dependencies

Express - a versatile web server for Node.js

Introduction to Express

Installing Express

Basic route handling

Advanced routing via the Router object

Working with Static Files

Utilising Query Strings

Utlising Query Params

Relational database management systems

Introduction to Relational Databases

Introduction to SQL

Create a database and a table

Install Workbench

Insert data

Update data

Delete data

advanced SQL statements

SQL JOINs - joining information in two tables

Reviewing the final setup

Create a REST API with a Relational Databases

Designing our REST API

Using the MySQL Native Driver

Select data via the MySQL Native Driver

Introduction to knex.js

Extend the API by using knex.js

Using Express Middlewares

Posting data to the database via knex.js

Patching data in the database via Knex.js

Deleting data from the database with Knex.js

Handling missing routes

Student Challenge: Create the route handler

Use JOINs with Knex.js

Utilise Query Strings

Return an object instead of an array

Create a REST API using NoSQL

Introduction to NoSQL

Install and load data to MongoDB

Basic queries in MongoDB

Updates and Aggregates

Create a blank application

Display all data from MongoDB

Display a single document from MongoDB

Insert data in NoSQL

insert() vs insertOne() in MongoDB

HTTP Patch for MongoDB

Delete data from MongoDB

Handling errors

Loading additional documents to MongoDB

Query parameters for NoSQL

Securing a REST API

Introduction to JWT (JSON Web Tokens)

Implement JWT for a SQL based REST API

Implement JWT for a NoSQL based REST API

GraphQL- a "Qjuery API" for our REST API

Introduction to GraphQL

Query that returns a collection

Query that returns a single data object

Execute subqueries using GraphQL

Execute subqueries for nested data using GraphQL

A note on performance for RDBMS and GraphQL

Authentication for GraphQL and our REST API

Using GraphQL with NoSQL

Appendinx A - Tools

Introduction to Insomnia

Appendix B - Creating an application


Using environment variables the smart way

Create an application to consume our REST API - part 1

Create an application to consume our REST API - part 2

Create an application to consume our REST API - part 3


For web developers familiar with ES2015 and the basics of Node.js.

What you will learn

  • Architecting and designing a REST API from scratch
  • Understand HTTP methods, HTTP verbs and HTTP status codes
  • Understand NoSQL (MongoDB)--including queries
  • Understand Relational Databases and SQL (MySQL)
  • Have a working knowledge of Express - including route handling and middleware
  • Understand how to secure a REST API using JWT (JSON Web Tokens)
  • Learn and utilise GraphQL
  • How to consume a REST API from an application

About the instructor

Tamas Piros is a Google Developer Expert in web technologies and a developer evangelist. He has more than a decade of experience delivering technical training to large, prestigious organizations. Throughout his career, he has delivered presentations and training classes all over the world. He is passionate about unlocking the latest and greatest features of web development.

placing your order...

Don't refresh or navigate away from the page.
liveVideo $59.99 $119.99
Mastering REST APIs in Node.js: Zero-To-Hero (liveVideo) added to cart
continue shopping
go to cart

Prices displayed in rupees will be charged in USD when you check out.