Tutorial for FastAPI using Bunnet as an ODM for MongoDB
The full tutorial can be read here
- Clone this repo
- Make sure you have the following installed:
- Install the dependencies:
pipenv install --dev
- Run tests:
- Activate your Pipenv environment:
pipenv shell
- Run tests:
pytest tests/
- Activate your Pipenv environment:
- Run app locally (after having activate your virtual environment):
uvicorn main:app --host 0.0.0.0 --reload
- Build Docker image:
docker build --build-arg RUN_STAGE=DEV --build-arg BUILD_STAGE=DEV -t fastapi:latest .