I recently explored FastAPI alongside my usual Rails work and built a small project to learn the essentials:
β
CRUD APIs (with items)
β
User authentication with JWT (login & registration)
β
Integrated a Weather API wrapper
β
DB operation, I use sqlite3
β
Hands-on with Alembic migrations & SQLModel
β
Password hashing
β
Handling Environment variables
and a few more things...
The learning curve was smooth, and I like how FastAPI makes API development clean. π
Hereβs the repo if youβd like to take a look π
π [https://github.com/qisantanu/fastapi_learn]
Would love feedback and ideas on what to add next!
To help myself memorize and compare, I drafted this write-up. Hopefully, it helps anyone else coming from Rails into FastAPI.
π Key Comparisons
I am planning to explore for Background jobs anf file upload. Iβll keep updating this as I learn more. If youβre also coming from Rails, maybe this cheat sheet will help!
See my code in the above shared gihub link.
Thanks!!!
Top comments (0)