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)