fastapi-tdd-docker
Test-Driven Development with FastAPI and Docker
File Explorer
Download Latest Version (.zip)- main.yml
- __init__.py
- crud.py
- ping.py
- summaries.py
- __init__.py
- pydantic.py
- tortoise.py
- __init__.py
- config.py
- db.py
- main.py
- summarizer.py
- create.sql
- Dockerfile
- 0_20250421234125_init.py
- __init__.py
- conftest.py
- test_ping.py
- test_summaries.py
- test_summaries_unit.py
- .coveragerc
- .dockerignore
- Dockerfile
- Dockerfile.prod
- entrypoint.sh
- pyproject.toml
- requirements-dev.txt
- requirements.txt
- setup.cfg
- .gitignore
- docker-compose.yml
- LICENSE
- README.md
- release.sh
# Installation Guide
1. Get the code
git clone https://github.com/testdrivenio/fastapi-tdd-docker
Downloads the entire project code from GitHub to your computer.
cd fastapi-tdd-docker
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker compose up -d --build
Builds and starts all defined containers (server, database, etc.) at once, in the background.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. Python
EasyPrerequisites
pip install -r project/requirements.txt
Installs the Python libraries listed in requirements.txt (or similar).
python <์คํํ ํ์ผ๋ช
>.py # README์์ ์ ํํ ์คํ ํ์ผ๋ช
์ ํ์ธํ์ธ์
Runs the Python script (or module).
If it runs without errors and prints output in the terminal, it worked.
// repository documentation
Was this content helpful?
(0 ratings)
