cookiecutter-python-flask-clean-architecture
Cookiecutter Python Flask template for jumpstarting production-ready projects quickly.
File Explorer
Download Latest Version (.zip)- maintenance_window_sequence.jpg
- maintenance_window_database_migration_strategy.md
- onion-architecture-article.md
- run_postgres.sh
- __init__.py
- todo.py
- __init__.py
- todo.py
- __init__.py
- middleware.py
- requests.py
- responses.py
- __init__.py
- base_model.py
- todo.py
- __init__.py
- constants.py
- exceptions.py
- __init__.py
- sql_alchemy.py
- __init__.py
- model_extension.py
- sql_todo.py
- __init__.py
- repository.py
- todo_repository.py
- __init__.py
- __init__.py
- repository_service.py
- todo_service.py
- __init__.py
- app.py
- config.py
- cors.py
- create_app.py
- dependency_container.py
- error_handler.py
- logging.py
- management.py
- __init__.py
- test_delete.py
- test_get.py
- test_patch.py
- test_post.py
- __init__.py
- __init__.py
- __init__.py
- __init__.py
- app_test_base.py
- __init__.py
- __init__.py
- .gitignore
- Dockerfile
- README.md
- requirements-test.txt
- requirements.txt
- wsgi.py
- .gitignore
- CODE_OF_CONDUCT.md
- cookiecutter.json
- LICENSE
- README.md
- SECURITY.md
- SUPPORT.md
# Installation Guide
1. Get the code
git clone https://github.com/microsoft/cookiecutter-python-flask-clean-architecture
Downloads the entire project code from GitHub to your computer.
cd cookiecutter-python-flask-clean-architecture
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 build -f {{cookiecutter.repo_name}}/Dockerfile -t cookiecutter-python-flask-clean-architecture .
Builds a runnable image based on the Dockerfile.
docker run -p 8080:80 cookiecutter-python-flask-clean-architecture
Runs the built image as an actual container.
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
python -m unittest discover -s tests
Runs the Python script (or module).
If it runs without errors and prints output in the terminal, it worked.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
