.
└── app/
├── api/
│ ├── music/
│ │ ├── controller.py: API endpoint
│ │ ├── schemas.py: Type model, enum
│ │ ├── services.py: API에서 사용하는 method
│ └── router.py
├── main.py
├── settings.py: 환경변수
└── README.md
- Install python environment (pyenv, virtualenv, ...)
- Install poetry, fastapi, uvicorn
$ pip(pip3) install poetry fastapi uvicorn
- Install packages
$ poetry install
- app folder로 이동
$ cd app
- 서버 실행
app$ uvicorn main:app --reload
- Swagger UI URL
http://localhost:8000/docs