No Description

clx_IT ffa0692cd3 更新 'Dockerfile' 1 year ago
.idea a81199292e fastapi+minio:v2 1 year ago
app 4885564143 提交 1 year ago
config 4885564143 提交 1 year ago
models 4885564143 提交 1 year ago
routers 4885564143 提交 1 year ago
test 4885564143 提交 1 year ago
utils 4885564143 提交 1 year ago
Dockerfile ffa0692cd3 更新 'Dockerfile' 1 year ago
README.md 5e71ab8351 fastapi+minio——finally 1 year ago
Return.md 6ee4811191 fastapi+minio——finally 1 year ago
docker-compose.yml 6ee4811191 fastapi+minio——finally 1 year ago
requirements.txt 5e71ab8351 fastapi+minio——finally 1 year ago
test_main.http e5594268d1 图床项目--v1 1 year ago

README.md

A simple example of using Fast API in Python.

Preconditions:

  • Python 3

Clone the project

git clone git@gitee.com:cao-lixu/fastap_minio.git

Run local

Install dependencies

pip install -r requirements.txt

Run minio

docker run -p 9000:9000 minio/minio:RELEASE.2021-06-17T00-10-46Z server /data

Run server

uvicorn app.main:app --reload

Run test

pytest test/test.py

Run with docker

Run server

docker-compose up -d --build

Run test

docker-compose exec app pytest test/test.py

API documentation (provided by Swagger UI)

http://127.0.0.1:8000/docs

Run server

docker-compose exec --username=fastapi