FastAPI游乐场
快速API沙箱,用于探索后端知识。
特征
用docker启动。
指示
cd docker-fastapi
docker-compose up -d # launch up docker
docker-compose start exec python bash # access into docker
docker-compose stop # stop docker
cd app
uvicorn main:app --reload # execute RESTful API server in docker env
python test_caller.py # execute testing scripts.
2021-04-06 11:07:11
5KB
Python
1