{"id":25558710,"url":"https://github.com/code4mk/fastapi-template","last_synced_at":"2026-02-27T11:30:16.865Z","repository":{"id":272573790,"uuid":"917058225","full_name":"code4mk/fastapi-template","owner":"code4mk","description":"production ready fastapi template","archived":false,"fork":false,"pushed_at":"2025-02-18T20:31:57.000Z","size":339,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T21:33:24.195Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/code4mk.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}},"created_at":"2025-01-15T09:20:43.000Z","updated_at":"2025-02-18T20:32:01.000Z","dependencies_parsed_at":"2025-01-15T11:20:03.866Z","dependency_job_id":"332d47aa-1bf7-400d-98d2-6f7780bd418a","html_url":"https://github.com/code4mk/fastapi-template","commit_stats":null,"previous_names":["code4mk/fastapi-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Ffastapi-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Ffastapi-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Ffastapi-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Ffastapi-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code4mk","download_url":"https://codeload.github.com/code4mk/fastapi-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239869218,"owners_count":19710485,"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","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":[],"created_at":"2025-02-20T16:19:31.260Z","updated_at":"2026-02-27T11:30:16.828Z","avatar_url":"https://github.com/code4mk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastApi project template\n\n## Setup project\n```bash\n# Activate virtual environment\npipenv shell\n\n# Install dependencies\npipenv install\n```\n\n## Add env\n* add env file in root directory\n* copy from `.env.example`\n\n```bash\n.env\n```\n\n## Run project\n\nrun the project\n```bash\nuvicorn app.main:app --reload --port 8000\n# or\n./run-project.sh\n```\n\n## Database migration process with Alembic\nAlembic is a database migration tool for SQLAlchemy.\n\n### revision (migration)\nyou can use the following command to create a new migration file.\n\n```bash\nalembic revision --autogenerate -m \"initial project\"\n```\n\nthis will create a new migration file in the `alembic/versions` directory.\n\n### upgrade (migrate)\nyou can use the following command to migrate the database.\n\n```bash\nalembic upgrade head\n```\n\n## Directory structure\n\n```bash\n├── app/\n│   ├── api/\n│   │   ├── v1/\n│   │   │   └── user.py\n│   │   ├── health.py\n│   │   └── root_index.py\n│   ├── config/\n│   │   ├── authorization.py\n│   │   └── cors.py\n│   ├── database/\n│   │   └── database.py\n│   ├── middleware/\n│   │   └── authorization_middleware.py\n│   ├── models/\n│   │   └── users.py\n│   ├── schemas/\n│   │   └── user_schema.py\n│   ├── serializers/\n│   │   └── user_serializer.py\n│   ├── services/\n│   │   └── user_service.py\n│   ├── templates/\n│   │   ├── mails/\n│   │   │   ├── css/\n│   │   │   │   └── mail.css\n│   │   │   └── welcome_email.html\n│   │   └── user.html\n│   ├── utils/\n│   │   ├── mailer/\n│   │   │   ├── inline_css.py\n│   │   │   ├── mail.py\n│   │   │   └── mail_templating.py\n│   │   ├── base.py\n│   │   ├── jwt_utils.py\n│   │   ├── paginate.py\n│   │   ├── password.py\n│   │   └── validation.py\n│   ├── __init__.py\n│   └── main.py\n├── alembic/*\n├── docker/*\n├── alembic.ini\n├── .env\n├── .env.example\n├── .gitignore\n├── build.sh\n├── Pipfile\n├── Pipfile.lock\n├── README.md\n└── run-project.sh\n```\n\n\u003e [!NOTE]  \n\u003e This project needs python 3.12 or higher\n\n## postman collection documentation\n\n* [postman collection documentation](https://documenter.getpostman.com/view/9920489/2sAYQZGBNJ)\n\n## docs\n* [linting and formatting](_docs/lint-formatting.md)\n* [testing](_docs/testing.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4mk%2Ffastapi-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode4mk%2Ffastapi-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4mk%2Ffastapi-template/lists"}