Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Getting Started with Express.js to Build a JSON API in Node
Rating: 4.4 out of 5(70 ratings)
3,556 students

Getting Started with Express.js to Build a JSON API in Node

Implement basic web server operations on a Bookstore sample application
Created byRenan Martins
Last updated 3/2023
English

What you'll learn

  • Learn the first steps to building a web server with the minimalistic Nodejs framework Express.
  • How to build a simple JSON RESTful API using the Express framework.
  • Implement basic Create, Read, Update, Delete (CRUD) actions on the API.
  • Debug the API endpoints with HTTP request software Postman.

Course content

1 section12 lectures1h 33m total length
  • Introduction (Bookstore)3:44

    Learn to use the express framework to build a JSON API for a bookstore, implementing create, read, update, and delete operations with hard coded data.

  • Generating the Project with NPM3:48
  • Setting Up and Running the Express Server5:14
  • Defining our First GET Route in Express4:53
  • Using Postman to Test the API6:11
  • Writing the Route to Get All Books5:43
  • Writing the GET Route to Get a Specific Book By Id13:43
  • Parsing Incoming Request Body in Express using Middleware9:30
  • Defining the POST Route to Create a Book8:09
  • Defining the PUT Route to Update a Book13:17
  • Defining the DELETE Route to Destroy a Book12:34
  • End of the Express Course Review6:14

    Learn to build a restful json api with express using a bookstore example, covering get, post, put, delete, and req.body via express.json.

Requirements

  • A basic knowledge of Nodejs / JavaScript is required.
  • Some exposure to fundamental database principles is highly advised.

Description

Learn the first steps to building a web server with the minimalistic Node.js framework Express.js.

Step into the basics of setting up a bookstore catalog web service, writing your code in the Node.js (Server-side JavaScript) language and leveraging the framework Express. The course demonstrates how to create a simple RESTful API that serves data in the JSON format.

This course is intended for people who have never touched the framework and are looking for a brief introduction. Some basic knowledge of Node.js / JavaScript is required. Some exposure to fundamental database principles for data storage is highly advised.

NPM is used to generate the project and manage the package dependencies.

The course provides an quick overview of the Express.js framework and gets you started with building a JSON RESTful API with the four basic data operations of CREATE, READ, UPDATE, and DELETE ("CRUD"). To focus on the framework constructs, database configuration and maintenance are omitted from this course; a specific object-relational mapping (ORM) solution is not used nor any other third-party libraries other than Express itself.

The Express.js JSON API endpoints are tested using HTTP requests made by the program Postman, a good choice of software to conveniently debug the routes.

The course is a good quick start if you are looking to get started building APIs in the Node.js language. You can use the basic knowledge from the course to go on to build your own web services. You are welcome to iterate upon the knowledge you obtain from it.

Who this course is for:

  • This course is intended for people who have never touched the Expressjs framework.
  • Those who want to get started building JSON APIs in Nodejs (JavaScript) language.