-
Fastapi Backend: Part 2
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…
-
Fastapi Backend: Part 1
This is a log of my fastapi backend development. Requirements: basics: route/controller layer: I wanted to make versioning of routes like api/v1/books and extend to as many version I want so that my results can change as per the version if I want to upgrade or my data/requirements hets changed in future. I might use…