Express API Hoot Back-End
About
In this module, students will build a backend for the Hoot blogging platform using Express and MongoDB. They will create a RESTful API that supports full CRUD functionality for blog posts and comments. Throughout the module, students will focus on designing RESTful routes, managing data relationships with MongoDB, and testing API endpoints with tools like Postman. This practical experience will equip students with essential backend development skills and prepare them for building a full-stack MERN application.
Content
| Lesson | Skills |
|---|---|
| Setup | Setting up the development environment |
| Setting the Stage | Understand the architecture and functional requirements of building a secure Express API for a blogging application |
| Build the Models | Define and export a mongoose model for use with an Express API |
| Sign Up a User | Sign up a new user using Postman |
| Create Hoot | Create a POST route to add new hoot blog posts to the database |
| Index Hoots | Create a GET route to retrieve all hoot blog posts from the database |
| Show Hoot | Create a GET route to retrieve a specific hoot blog post from the database by id |
| Update Hoot | Create a PUT route to update a specific hoot blog post in the database by id |
| Delete Hoot | Create a DELETE route to delete a specific hoot blog post from the database by id |
| Create Comment | Create a POST request to embed a comment document in a specific hoot |
Level Up content
| Lesson | Skills |
|---|---|
| Update Comment | Create a PUT route to update an embedded comment by id |
| Delete Comment | Create a DELETE route to delete an embedded comment by id |
References
📖 Reference Materials