FastAPI-MVC Hope this example helps in structuring your project What is FastAPI-MVC? it is a templat eshows how to implement MVC(Model-View-Controller)(traditional design pattern) in FastAPI. using raw sql query also to understand how to implement native sqlqueries in fastapi to run just run the following command install python if you don't have you can go to python.org install fastapi using pip install fastapi and you are ready to run just type uvicorn app.views.main:app also don't forget to add environment variables in your .env file