Implement basic web server operations on a Bookstore sample application

What you will 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.


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.

Get Instant Notification of New Courses on our Telegram channel.

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.



Building the API

Introduction (Bookstore)
Generating the Project with NPM
Setting Up and Running the Express Server
Defining our First GET Route in Express
Using Postman to Test the API
Writing the Route to Get All Books
Writing the GET Route to Get a Specific Book By Id
Parsing Incoming Request Body in Express using Middleware
Defining the POST Route to Create a Book
Defining the PUT Route to Update a Book
Defining the DELETE Route to Destroy a Book
End of the Express Course Review