Skip to content

FastAPI project template with ELK log support and basic Docker image configuration

Notifications You must be signed in to change notification settings

Shopee-DPD/fastapi-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

FastAPI project template with ELK log support and basic Docker image configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published