Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.65 KB

README.md

File metadata and controls

36 lines (31 loc) · 1.65 KB

FastAPI Template

Technology Stack

  • poetry: dependency and virtual environment management
  • Coding style
    • flake8: check style, programming errors and complexity
    • black: auto format your code
    • isort: auto sort your package importing
  • Test thought pytest with the following supports
  • commitizen:
    • regulate git commit convention
    • generate changelog automatically
  • invoke: organize the tools above
  • pre-commit: git-hook to run the above tools automatically
  • Consolidate most of the tool configurations in pyproject.toml

Getting Started

  1. Install cookiecutter
> pip install cookiecutter
  1. Clone the fastapi template
> cookiecutter [email protected]:Shopee-DPD/fastapi-template.git
  1. Provide the following inputs:
  • project_name: The name of the project, which will be used to create folders and populate the README
  • project_description: A description of the project, which will be added to the README
  • python_version: The Python version, which will be specified in poetry and the Dockerfile
  • build_docker_image: Whether to create a docker-compose file
  • send_logs_to_elk: Whether to send logs to ELK