├── app
│ ├── __init__.py
│ ├── main.py
│ ├── auth
│ │ ├── auth_handler.py
│ │ ├── auth_token.py
│ │ └── auth_user.py
│ └── server
│ ├── app.py
│ ├── database.py
│ ├── models
│ └── routes
└── requirements.txt
Responsible for running the app on server
Handles the authentication processes.
Contains database schema and API routes.
Contains files that define the structure of your database documents. (This is a NoSQL Database so, there's no tabular schema)
Handles all the requests and responses
Registers and handles urls and runs the FastAPI instance.
Handles the connection with the database and as well as all the interactions between MongoDB server and the FastAPI server.
virtualenv env
source env/Scripts/activate
pip install -r requirements.txt
python app/main.py
or
$ cd app/server
$ uvicorn app:app --reload