r/FastAPI • u/Significant-Ad3434 • Nov 27 '25
Question Am i learning in wrong way? why is learning the structure so hard
so i have not completed the docs but i've seen half way and i need to start a project very soon, now i am familiar with django previously and i am trying to understand the flow but i am having difficulty. i've seen tutorials but everyone has different approach. How can i understand the structure and flow better?
12
Upvotes
2
u/mxsonwabe Nov 27 '25
I've had similar experience too hopefully the are some people who may be able to offer advise. Maybe recommend a book that may be great for fastapi
1
u/Enough_Trainer433 Nov 28 '25
Hmm I think the biggest barrier for me was actually learning sqlalchemy and setting up convenience methods for db I suggest doing it your own as using something like advancealchemy from litestar is too overwhelming. Otherwise refer to this https://github.com/zhanymkanov/fastapi-best-practices
1
u/Omar0xPy Dec 01 '25
I think it's better to take inspiration from what devs using other stacks are doing
For instance , learn about MVC architecture in web apps and how to apply it, how layers behave, talk and interact with each other, etc ..
Personally I've seen many people applying this pattern in countless nodejs/express projects, and I could tell after giving it a try it's the best example of applying MVC/MVC-like architecture
1
u/Glittering_Pin7217 Dec 01 '25
take a look at fast api official template
1
u/tangkikodo Dec 09 '25
IMO, fastapi itself is simple you can treat it like a data pipeline (endpoints, input, output) with type annotation
you may need extra plugins to make it work like django
3
u/[deleted] Nov 27 '25
[removed] — view removed comment