FastAPI 튜토리얼

Docker로 실행

# docker build
DOCKER_BUILDKIT=1 docker build -t fastapi_{APP_name} .
# docker run
docker run -itd -p 8000:8000 --name fastapi_todo fastapi_{APP_name}:latest

Poetry로 실행

# Mac 환경
brew install poetry
# pip 환경
pip install poetry
# poetry 설정
poetry build
# TODO API 실행
poetry run uvicorn todo.api:app --reload
# planner API 실행
cd planner
poetry run uvicorn main:app --reload