간단한 FastAPI 애플리케이션 배포 연습을 위한 프로젝트입니다. Poetry를 사용하여 의존성을 관리합니다.
fastapi_deploy_tutorial/
├── app/ # 애플리케이션 패키지
│ ├── api/ # API 엔드포인트
│ │ ├── hello.py # Hello World 엔드포인트
│ │ └── router.py # API 라우터 모음
│ └── main.py # FastAPI 애플리케이션 정의
├── pyproject.toml # Poetry 의존성 정의
└── Dockerfile # Docker 이미지 정의
- Poetry 설치 (아직 설치하지 않은 경우):
curl -sSL https://install.python-poetry.org | python3 -
- 의존성 설치:
poetry install
- 애플리케이션 실행:
uvicorn app.main:app --reload
- 브라우저에서 확인:
- API 문서: http://localhost:8000/docs
- 엔드포인트: http://localhost:8000/