rajpratyush / MongoDB--

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"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

git clone https://github.com/amamov/fastapi-mongodb-boilerplate.git <your-project-name>
cd <your-project-name>

# create "secrets.json" for env
touch secrets.json
// ./secrets.json
{
  "MONGO_DB_NAME": "your-db-name",
  "MONGO_URL": "mongodb+srv://..."
}
# remove .git
rm -rf .git
pip install -r requirements.txt
python3 start.py

Dependency

About


Languages

Language:Python 79.4%Language:HTML 15.6%Language:CSS 3.7%Language:JavaScript 1.2%