Sen descrición

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

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