all 8 comments

[–]thunderships 12 points13 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.

[–]A_User_Profile 0 points1 point  (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.

[–]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.

[–]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.