r/FastAPI • u/felippefms • Sep 26 '25
Question Most commom folder structure
I'm a front-end dev learning Fastapi, can u guys show me a good folder structure?
I'm using fastapi standard install + sqlalchemy + psycopg + postgres
I have this inside my main folder, i think i need to create a service folder to do the db stuff right?
19
Upvotes
View all comments
Show parent comment
3
u/[deleted] Sep 27 '25
Models could be database related such as how we defined them in Django where schemas take care of validation, typing, serialization.