This repository provides a FastAPI template with MongoDB setup using Docker Compose.
Make sure you have Docker and Docker Compose installed on your machine.
docker-compose up -d
docker-compose ps
docker-compose down
The database will be accessible on localhost:27017
with the specified root username and password.
fastapi dev
╭────────── FastAPI CLI - Development mode ───────────╮
│ │
│ Serving at: http://127.0.0.1:8000 │
│ │
│ API docs: http://127.0.0.1:8000/docs │
│ │
│ Running in development mode, for production use: │
│ │
│ fastapi run │
│ │
╰─────────────────────────────────────────────────────╯
- Python 3.11
- FastAPI
- Mongodb
- Pydantic
- Pymongo
- Beanie