Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn to build a complete RESTful API from scratch using Node.js, Express, and MongoDB. Create a full-featured web API that handles GET, POST, PUT, and DELETE operations for JSON data through HTTP requests. Follow along step-by-step to set up the development environment, create a Node.js application, establish a MongoDB database connection, and implement API routes for managing books and genres. Explore essential concepts such as creating models, handling HTTP methods, implementing body parsing, and testing API endpoints. By the end of this comprehensive tutorial, gain the skills to develop and deploy your own robust RESTful API for managing a bookstore's data.
Syllabus
Introduction
Installation
Create NPM
Create App KS
Create Node App
Create MongoDB Database
Create API Route
Create Genre Variable
Add Genre to Route
Access Genre Object
Create Book Model
Methods
Get a single book
Get book by ID
Get genre
Get post
Test
BodyParser
Add Books
Publish Pages
Genre Model
Copy Post
Copy Genre ID
Copy Book ID
Get Book ID
Taught by
Traversy Media