clx_IT ffa0692cd3 更新 'Dockerfile' | 1 year ago | |
---|---|---|
.idea | 1 year ago | |
app | 1 year ago | |
config | 1 year ago | |
models | 1 year ago | |
routers | 1 year ago | |
test | 1 year ago | |
utils | 1 year ago | |
Dockerfile | 1 year ago | |
README.md | 1 year ago | |
Return.md | 1 year ago | |
docker-compose.yml | 1 year ago | |
requirements.txt | 1 year ago | |
test_main.http | 1 year ago |
A simple example of using Fast API in Python.
git clone git@gitee.com:cao-lixu/fastap_minio.git
pip install -r requirements.txt
docker run -p 9000:9000 minio/minio:RELEASE.2021-06-17T00-10-46Z server /data
uvicorn app.main:app --reload
pytest test/test.py
docker-compose up -d --build
docker-compose exec app pytest test/test.py
http://127.0.0.1:8000/docs
docker-compose exec --username=fastapi