Aucune description

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

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