Youngestdev/fastapi-mongo
概要
MongoDBを使用したFastAPIアプリケーションを構築するためのテンプレートです。
Web・アプリ開発できること
- Python FastAPI backend.
- MongoDB database.
計測したスター増加
- 24時間
- +1
- 7日間
- -1
- 15日間
- -2
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルFastAPI and MongoDB Boilerplate
A simple starter for building RESTful APIs with FastAPI and MongoDB.

Features
- Python FastAPI backend.
- MongoDB database.
- Authentication
- Deployment
Using the applicaiton
To use the application, follow the outlined steps:
- Clone this repository and create a virtual environment in it:
$ python3 -m venv venv
- Install the modules listed in the
requirements.txtfile:
(venv)$ pip3 install -r requirements.txt
You also need to start your mongodb instance either locally or on Docker as well as create a
.env.devfile. See the.env.samplefor configurations.Example for running locally MongoDB at port 27017:
cp .env.sample .env.devStart the application:
python3 main.py
The starter listens on port 8000 on address 0.0.0.0.

Testing
To run the tests, run the following command:
(venv)$ pytest
You can also write your own tests in the tests directory.
The test follow by the official support FastAPI testing guide, pytest, anyio for async testing application.
Deployment
This application can be deployed on any PaaS such as Heroku or Okteto and any other cloud service provider.
Contributing ?
Fork the repo, make changes and send a PR. We'll review it together!
License
This project is licensed under the terms of MIT license.
関連プロジェクトを探す
読み込み中…