{"id":30450297,"url":"https://github.com/ottojimb/fastapi-boilerplate","last_synced_at":"2026-05-05T19:31:41.461Z","repository":{"id":126390026,"uuid":"575151996","full_name":"ottojimb/fastapi-boilerplate","owner":"ottojimb","description":"Simple Personal FastAPI Boilerplate with postgres+postgis, auto generated migrations with alembic, sqlalchemy with async, pytest and docker","archived":false,"fork":false,"pushed_at":"2022-12-07T19:53:12.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-23T15:13:18.959Z","etag":null,"topics":["alembic","async","docker","fastapi","postgis","postgres","pytest","sqlalchemy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ottojimb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-12-06T21:47:29.000Z","updated_at":"2022-12-06T21:57:38.000Z","dependencies_parsed_at":"2023-06-16T13:15:56.157Z","dependency_job_id":null,"html_url":"https://github.com/ottojimb/fastapi-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ottojimb/fastapi-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottojimb%2Ffastapi-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottojimb%2Ffastapi-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottojimb%2Ffastapi-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottojimb%2Ffastapi-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ottojimb","download_url":"https://codeload.github.com/ottojimb/fastapi-boilerplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottojimb%2Ffastapi-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32664789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["alembic","async","docker","fastapi","postgis","postgres","pytest","sqlalchemy"],"created_at":"2025-08-23T13:26:39.923Z","updated_at":"2026-05-05T19:31:41.454Z","avatar_url":"https://github.com/ottojimb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Boilerplate\n\nSimple Personal FastAPI Boilerplate with postgres+postgis, auto generated migrations with alembic, sqlalchemy with async, pytest and docker\n\n## How to use\n\n1. Clone this repo\n2. Install the requirements: `pip install -r requirements.txt`\n3. Edit `app\u003ecore\u003econfig.py` to your needs\n4. Write your models in `app\u003edatabase\u003erepositories`; `app\u003edatabase\u003etables` and `app\u003emodels\u003eschemas`\n5. Write the test (yep, it is important, not for you but for your boss and to feel fashion using TDD)\n6. Write a new router in `app/api/routes/`\n7. Explore and fix the other things (I'm boring of looking each new thing that I need to do)\n\n## Util commands\n\n### How to test 🧪\n\nRun:\n\n```\npytest\n```\n\n### How to live code 👨‍💻/👩‍💻\n\nRun:\n\n```\nuvicorn app.main:app --reload\n```\n\n### How to debug 🔍\n\nRun:\n\n```\nipython -m uvicorn app.main:app --pdb\n```\n\nOr press F5 in vscode\n\n### How to get the coverage to pass it on to your Project Manager and avoid stupid questions about your progress 📈\n\n```\npytest --cov=app\n```\n\n### How to build everything with docker-compose 🐋📦\n\n```\ndocker-compose up --build\n```\n\n### How to run the test in the docker compose (for CI/CD) 🧪\n\n```\ndocker-compose run fastapi-core pytest\n```\n\n💡 Important Note: the pytest project was made to avoid interruptions with the real database, the data is ephemeral in each test\n\n💡 Important Note #2: There are some mypy issues to be fixed... someday...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fottojimb%2Ffastapi-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fottojimb%2Ffastapi-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fottojimb%2Ffastapi-boilerplate/lists"}