{"id":48978970,"url":"https://github.com/jackcizon/fastapi-template","last_synced_at":"2026-04-18T10:39:30.863Z","repository":{"id":343686957,"uuid":"1150292674","full_name":"jackcizon/fastapi-template","owner":"jackcizon","description":"A Minium FastAPI Template Project","archived":false,"fork":false,"pushed_at":"2026-04-16T15:33:41.000Z","size":421,"stargazers_count":9,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-16T17:30:38.118Z","etag":null,"topics":["backend","fastapi","python","web"],"latest_commit_sha":null,"homepage":"https://github.com/jackcizon/fastapi-template","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/jackcizon.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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":"2026-02-05T05:25:02.000Z","updated_at":"2026-04-16T15:33:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jackcizon/fastapi-template","commit_stats":null,"previous_names":["jackcizon/fastapi-template"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/jackcizon/fastapi-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackcizon%2Ffastapi-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackcizon%2Ffastapi-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackcizon%2Ffastapi-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackcizon%2Ffastapi-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackcizon","download_url":"https://codeload.github.com/jackcizon/fastapi-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackcizon%2Ffastapi-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31966207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["backend","fastapi","python","web"],"created_at":"2026-04-18T10:39:29.938Z","updated_at":"2026-04-18T10:39:30.850Z","avatar_url":"https://github.com/jackcizon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"A Minimum FastAPI Template Project\n==================================\n\n.. image:: https://github.com/jackcizon/fastapi-template/actions/workflows/ci.yaml/badge.svg\n   :target: https://github.com/jackcizon/fastapi-template/actions/workflows/ci.yaml\n   :alt: CI\n\n\nVersion\n-------\n\n``3.1.1`` (async)\n\nGet the template project\n------------------------\n\n.. code-block:: bash\n\n    git clone https://github.com/jackcizon/fastapi-template.git\n\nDelete the useless parts\n------------------------\n\n.. code-block:: bash\n\n    cd fastapi-template\n    rm -rf .git\n    rm docs/*.md\n    rm -rf src/api/migrations  # must do this, otherwise `db init` operation will fail.\n    cd ..\n    mv fastapi-template \u003cyour_project_name\u003e\n    cd docs\n    mkdir _static  # if _static not exists\n\nBefore starting\n---------------\n\n* Check **TODO** in PyCharm and modify them.\n* Edit config files in ``envs/``.\n* Edit Docker configurations in ``docker/``.\n* See available scripts in ``scripts/``.\n* View CLI usage: ``python manage.py Demo``.\n* press ``ctrl+shift+r`` in PyCharm, find ``fastapi[_-]template``, and `192.168.8.7`, replace with your conf.\n* ``poetry update`` to update deps, or use ``uv`` (maybe you like it, I prefer to ``poetry``).\n\nInit DB\n-------\n\n.. code-block:: shell\n\n    python manage.py AlembicInit\n\nIn file ``src/api/migrations/env.py``, modify the metadata configuration:\n\n**From:**\n\n.. code-block:: python\n\n    # add your model's MetaData object here\n    # for 'autogenerate' support\n    # from myapp import mymodel\n    # target_metadata = mymodel.Base.metadata\n    target_metadata = None\n\n**To:**\n\n.. code-block:: python\n\n    from src.core.db.models import Base\n    from src.api.models import *  # must include\n\n    target_metadata = Base.metadata\n\nStart project\n-------------\n\n.. code-block:: shell\n\n    python manage.py AlembicCheck\n    # show error is ok\n\t# it means `alembic` notifies you that the models have changed,\n\t# but the migration has not yet occurred.\n    python manage.py MakeMigrations\n    python manage.py Migrate\n\n.. note::\n    If there are some issues, remember to **delete all** records/rows in table: ``alembic_version``.\n\n.. code-block:: shell\n\n    python manage.py BatchCreateRoles\n    python manage.py BatchUpdatePermissions\n    python manage.py RunServer\n\nTest\n----\n\n.. code-block:: shell\n\n    python manage.py RunTests\n    # or\n    # make test","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackcizon%2Ffastapi-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackcizon%2Ffastapi-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackcizon%2Ffastapi-template/lists"}