DEV Community

Cover image for ๐Ÿš€ FastAPI vs Rails โ€” Notes from a Rails Developer Learning FastAPI
Santanu Bhattacharya
Santanu Bhattacharya

Posted on

๐Ÿš€ FastAPI vs Rails โ€” Notes from a Rails Developer Learning FastAPI

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)