-
Fastapi Backend: Part 3 (Service Layer)
This is the logs for building service layer Agenda: Common standard response schema Description: Schemas specific to books module Description: Books Service: Description: Books routes Description: Data validation using DTO Description: Logging configuration for the app: I wanted to configure logging throughout the app such that I can log my data anywhere in the app…
-
Fastapi Backend: Part 2 (DB layer)
Database Layer In this post, we will be building the database layer, which can be used to connect the database for querying. Requirements: environment Variable Need to add the DB url in .env file so that I can access the url and provide to SQLAlchemy to connect the app to DB. I am using asyncpg…