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)