YoVDO

Build a REST API with Express 5 and node 14

Offered By: egghead.io

Tags

Node.Js Courses REST APIs Courses Routing Courses Destructuring Courses

Course Description

Overview

Learn how to build a simple REST API to store notes using the latest built-in node features including native ES modules, the fs/promises API, async/await, the nullish coalescing operator, and destructuring. No compilers, no build steps, pure code.
This collection of lessons is great for beginners to Express as long as they are familiar with JavaScript and the HTTP protocol. Those more familiar with node and express will appreciate a fast-paced, modern take on using these popular tools and will likely benefit most from the lessons on input validation, models (which emphasizes a lot of new syntax), using fs/promises to serialize a Map, and accessing asynchronous data with async/await.
Pre-requisites:
Install curl
Install node 14
Be familiar with the terminal
View the source for this project in the project's github repo.
Notes:
I'm not very pedantic about REST and basically just mean an API over HTTP
Express 5 is still in alpha (and has been for over two years), but most of these lessons apply to Express 4 as long you use something like express-async-errors to add support for async routes and middleware

Syllabus

  • Serve a Basic Route with Express 5 and node 14
  • Add Basic Logging to an Express 5 App with morgan
  • Add Basic Error Handling to an Express 5 App
  • Add and Organize New Routes in an Express App
  • Access Form Data and URL Parameters with Express
  • Validating Input to an Express API
  • Create a Model to Manage Data for an Express API
  • Sort and Return an Array of Objects with a Query Param in an Express API
  • Use the fs/promises node API to Serialize a Map to the Filesystem
  • Access Asynchronous Data in an Express API with async/await

Taught by

Jamund Ferguson

Related Courses

ES6 - JavaScript Improved
Udacity
ES6 Javascript: The Complete Developer's Guide
Udemy
Javascript ES6! A Complete Reference Guide to Javascript ES6
Udemy
ES6: The Right Parts
Pluralsight
【世界で4万人が受講】JavaScriptエンジニアのためのES6完全ガイド
Udemy