Building RESTful APIs with Node.js and Express

Building RESTful APIs with Node.js and Express

1h 18mIntermediate2022-11-14

Authors

Emmanuel Henri

Emmanuel Henri

Executive with 20+ years of experience in programming and design

Course details

Did you know you can use Node.js and Express to build a web API that can push and pull data from your applications via HTTP? You don't have to learn ASP.NET or Python. You don't even have to know that much about back-end programming. In this course, Emmanuel Henri shows you how to create a simple, RESTful web API with these two popular JavaScript libraries. He guides you through how to set up the project, including the Express server and testing environment, and create the endpoints that you need to add, update, and delete data from a MongoDB database. Plus, Emmanuel demonstrates how to serve static files such as images with your new API and explores additional libraries that can help streamline API development, such as Koa and LoopBack.

Skills covered

Express.jsNode.jsJavaScript FrameworksAPIsBack-End Web DevelopmentFull-Stack Web DevelopmentProjectWeb DevelopmentOpen SourceSoftware Development

Concepts

Introduction

  • RESTful APIs with Node and Express
  • What you should know

Setting Up

  • Introduction to APIs and the libraries
  • Introduction to Postman
  • Install Node and Express
  • Install Mongo
  • Basic Babel setup

Initial Server Build

  • RESTful APIs refresher
  • Initial server setup
  • Initial server files and folders
  • Basic routing endpoints
  • Basics of middleware and uses

Database Setup

  • MongoDB basics refresher
  • Database setup
  • Schema setup

CRUD Operations

  • Create POST endpoint
  • Create all items GET endpoint
  • Create specific ID GET endpoint
  • Create PUT endpoint
  • Create DELETE endpoint

Other API Options

  • Static files serving
  • Other potential libraries for API

Conclusion

  • Next steps
40,000 Toman