https://github.com/amamov/fastapi-mongodb-boilerplate
A boilerplate of the minimal and extensible Python modern web framework fastapi and mongodb.
https://github.com/amamov/fastapi-mongodb-boilerplate
fastapi jinja mongodb motor odmantic pymongo python python3
Last synced: 3 months ago
JSON representation
A boilerplate of the minimal and extensible Python modern web framework fastapi and mongodb.
- Host: GitHub
- URL: https://github.com/amamov/fastapi-mongodb-boilerplate
- Owner: amamov
- Created: 2021-08-13T06:26:15.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-13T06:46:59.000Z (about 4 years ago)
- Last Synced: 2025-01-17T11:42:37.542Z (9 months ago)
- Topics: fastapi, jinja, mongodb, motor, odmantic, pymongo, python, python3
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# "Fastapi + MongoDB" Boilerplate
> A boilerplate of the minimal and extensible Python modern web framework fastapi and mongodb. It supports restapi and ssr at the same time and is configured based on odmantic, which is a lightweight odm of mongodb.
## Getting start
```shell
git clone https://github.com/amamov/fastapi-mongodb-boilerplate.git
``````shell
cd# create "secrets.json" for env
touch secrets.json
``````json
// ./secrets.json
{
"MONGO_DB_NAME": "your-db-name",
"MONGO_URL": "mongodb+srv://..."
}
``````shell
# remove .git
rm -rf .git
``````shell
pip install -r requirements.txt
``````shell
python3 start.py
```## Dependency
- [FastAPI](https://fastapi.tiangolo.com/ko)
- [odmantic](https://art049.github.io/odmantic)