Flask API Hoot Back-End
About
In this module, students will build a backend for the Hoot blogging platform using Flask, PostgreSQL, and JWT authentication. 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, and testing API endpoints with tools like Postman. This practical experience will equip students with essential backend development skills.
Content
| Lesson | Skills |
|---|---|
| Setup | Setting up the development environment. |
| Setting the Stage | Understand the architecture and functional requirements of building a secure Flask API for a blogging application. |
| Starting with Auth Boilerplate | Bootstrapping an app with our JWT auth template. |
| Setting Up the SQL Database | Creating SQL databases and tables with foreign keys. |
| Hoot Blueprint | Creating a resource blueprint. |
| 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. |
| Comments Blueprint | Creating a resource blueprint. |
| Create Comment | Create a POST request to create a comment associated with a specific hoot. |
Level Up content
| Lesson | Skills |
|---|---|
| Update Comment | Create a PUT route to update a comment by id. |
| Delete Comment | Create a DELETE route to delete a comment by id. |
References
📖 Reference Materials