- 가상환경 설정
cd fastapi-project
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- 서버 실행
cd src
uvicorn main:app --reload
- 데이터 베이스를 위한 도커 컨테이너 실행
docker run -p 3306:3306 \
-e MYSQL_ROOT_PASSWORD=todos \
-e MYSQL_DATABASE=todos -d \
-v todos:/db --name todos mysql:8.0