A simple starter for building RESTful APIs with FastAPI and MongoDB.
- Python FastAPI backend.
- MongoDB database.
- Authentication
- Deployment
Clone this repository and make a virtual environment in it. Install the modules listed in the requirements.txt file:
pip3 install -r requirements.txtTo run the starter:
First, set your PYTHONPATH:
export PYTHONPATH=$PWDNext:
python main.pyYou also need to start your mongodb instance.
The starter listens on port 8000 on address 0.0.0.0.
Fork the repo, make changes and send a PR. We'll review it together!
This project is licensed under the terms of MIT license.
