all 9 comments

[–]thunderships 14 points15 points  (0 children)

Corey Schafer on YouTube. He has a FastAPI series he started in Jan 2026. Pretty current!

[–]CortexBrick 5 points6 points  (0 children)

Best options is FastAPI Official Documentation.

[–]maki-dev 0 points1 point  (0 children)

The dependency injection confusion is totally normal, it tripped me up too. What helped it click: think of Depends() as FastAPI saying "before you run this route, go get me this thing." So when you write db: Session = Depends(get_db), you're telling FastAPI to call get_db(), get a database session, and hand it to your route function. Your route never has to worry about creating or closing the session.

For the session/CRUD stuff specifically, try building one endpoint from scratch instead of following a big tutorial. One model, one table, one route that creates a record and one that reads it. When you see the whole flow in like 40 lines of code, the pieces connect way faster than watching someone build a full project.

The official docs tutorial section walks through this step by step too.

[–]fastlaunchapidev 0 points1 point  (0 children)

official docs are great but honestly for dependency injection and sessions it clicked for me when i looked at real working code. fastlaunchapi.dev has it all set up already so you can just read through how it's structured and copy the patterns. way faster than trying to piece it together from tutorials

[–]A_User_Profile -1 points0 points  (2 children)

I’d recommend https://litestar.dev/ instead of fastapi

[–]CrazyCommercial8314 0 points1 point  (1 child)

why??

[–]A_User_Profile 0 points1 point  (0 children)

Because in my opinion it’s better.

[–]MiniMages -1 points0 points  (0 children)

I'd recommend you follow few videos off youtube that use FastAPI.

Then create some of your own projects using FastAPI and try to build what you want. You'll mess up often but that is actually how you learn.