/fastapi_beanie

Fully async implementation for FastAPI and MongoDB using beanie

Primary LanguagePython

FastAPI, Beanie and MongoDB Fully Async

FastAPI and Beanie: A Simple Guide to Building RESTful APIs with MongoDB fully async

Prerequisites

  • Python 3.7 or higher
  • Poetry
  • MongoDB
  • Basic knowledge of FastAPI and MongoDB

Set environment variables

# example
export MONGO_URI="mongodb://localhost:27017"

Run

  • make sure that mongodb is running
poetry run python main.py