{"id":31744785,"url":"https://github.com/kevyder/fastapi_template","last_synced_at":"2026-05-15T22:05:09.545Z","repository":{"id":316812053,"uuid":"1064385086","full_name":"kevyder/fastapi_template","owner":"kevyder","description":"FastAPI template project with preconfigured tools","archived":false,"fork":false,"pushed_at":"2025-09-26T20:17:13.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-26T22:16:27.964Z","etag":null,"topics":["fastapi","python","template-project"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevyder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-26T00:48:47.000Z","updated_at":"2025-09-26T20:18:31.000Z","dependencies_parsed_at":"2025-09-26T22:16:49.767Z","dependency_job_id":"127f5cda-86c2-43c3-a501-1b08efb603db","html_url":"https://github.com/kevyder/fastapi_template","commit_stats":null,"previous_names":["kevyder/fastapi_template"],"tags_count":null,"template":true,"template_full_name":null,"purl":"pkg:github/kevyder/fastapi_template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevyder%2Ffastapi_template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevyder%2Ffastapi_template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevyder%2Ffastapi_template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevyder%2Ffastapi_template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevyder","download_url":"https://codeload.github.com/kevyder/fastapi_template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevyder%2Ffastapi_template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001446,"owners_count":26083078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastapi","python","template-project"],"created_at":"2025-10-09T12:18:23.161Z","updated_at":"2026-05-15T22:05:09.539Z","avatar_url":"https://github.com/kevyder.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# FastAPI Template\n\n[![CI](https://github.com/kevyder/fastapi_template/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/kevyder/fastapi_template/actions/workflows/ci.yml)\n\nThis project is a template for building FastAPI applications with best practices for development, testing, and deployment using Docker and UV.\n\n## Features\n\n- FastAPI application structure\n- Docker and Docker Compose support for development and testing\n- uv for fast dependency management\n- Pre-configured for testing with pytest\n- Example endpoints and test cases\n\n## Requirements\n\n- Python 3.13+\n- Docker \u0026 Docker Compose\n- uv (for local development)\n  ```sh\n  pip install uv\n  ```\n\n## Project Structure\n\n```\n├── .github/\n│   ├── workflows/\n│   │   └── ci.yml               # CI workflow\n│   └── dependabot.yml           # Dependency update config\n├── src/\n│   ├── __init__.py\n│   └── main.py                  # FastAPI application entrypoint\n├── tests/\n│   ├── __init__.py\n│   └── test_main.py             # Example pytest tests\n├── .gitignore                   # Git ignore rules\n├── .pre-commit-config.yaml      # Pre-commit hooks config\n├── .python-version              # Python version pin\n├── Dockerfile                   # Production Docker build\n├── docker-compose.yml           # Development container setup\n├── docker-compose.test.yml      # Test container setup\n├── pyproject.toml               # Project metadata and dependencies\n├── uv.lock                      # Locked dependency versions\n├── LICENSE\n└── README.md                    # Project documentation\n```\n\n## Setup\n\n### Local Development\n\n1. Create and activate virtual environment:\n\t```sh\n\tuv venv\n\tsource .venv/bin/activate\n\t```\n\n2. Install dependencies:\n\t```sh\n\tuv pip install -e .[dev,test]\n\t```\n\n3. Set up pre-commit hooks (recommended):\n\t```sh\n\tpre-commit install\n\t```\n\tThis will install git hooks to automatically run:\n\t- ruff (code formatting and linting)\n\t- conventional commit validation\n\n\tPre-commit will run these checks before each commit to ensure code quality.\n\n4. Run the application:\n\t```sh\n\tuvicorn src.main:app --reload --host 0.0.0.0 --port 8080\n\t```\n\n### Using Docker Compose\n\nBuild and start the development server:\n\n```sh\ndocker-compose up --build\n```\n\nThe app will be available at http://localhost:8080\n\n## API Endpoints\n\n- `GET /` — Returns a welcome message\n\n## Running Tests\n\n### Locally\n\nWith activated virtual environment:\n```sh\npytest\n```\n\n### With Docker Compose\n\nTo run tests in a containerized environment:\n\n```sh\ndocker-compose -f docker-compose.test.yml up --build --abort-on-container-exit\n```\n\nThis will build the test container and run pytest against your FastAPI project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevyder%2Ffastapi_template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevyder%2Ffastapi_template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevyder%2Ffastapi_template/lists"}