{"id":13424929,"url":"https://github.com/mirzadelic/fastapi-starter-project","last_synced_at":"2025-03-15T18:36:07.677Z","repository":{"id":45902713,"uuid":"435674776","full_name":"mirzadelic/fastapi-starter-project","owner":"mirzadelic","description":"FastAPI Starter Project with SQLModel and Alembic","archived":false,"fork":false,"pushed_at":"2022-11-27T15:39:23.000Z","size":33,"stargazers_count":117,"open_issues_count":0,"forks_count":20,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-26T23:55:53.279Z","etag":null,"topics":["alembic","docker","fastapi","sqlmodel"],"latest_commit_sha":null,"homepage":"","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/mirzadelic.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}},"created_at":"2021-12-06T23:03:00.000Z","updated_at":"2024-10-22T21:13:38.000Z","dependencies_parsed_at":"2023-01-23T11:15:17.946Z","dependency_job_id":null,"html_url":"https://github.com/mirzadelic/fastapi-starter-project","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirzadelic%2Ffastapi-starter-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirzadelic%2Ffastapi-starter-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirzadelic%2Ffastapi-starter-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirzadelic%2Ffastapi-starter-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirzadelic","download_url":"https://codeload.github.com/mirzadelic/fastapi-starter-project/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243775951,"owners_count":20346296,"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":["alembic","docker","fastapi","sqlmodel"],"created_at":"2024-07-31T00:01:00.941Z","updated_at":"2025-03-15T18:36:02.663Z","avatar_url":"https://github.com/mirzadelic.png","language":"Python","funding_links":[],"categories":["Projects"],"sub_categories":["Boilerplate"],"readme":"# FastAPI Starter Project\n\nProject includes:\n\n-   `fastapi`\n-   `sqlmodel`\n-   `alembic`\n\n##\n\n## Models\n\nCheck db/models and migrations, there is one example.\n\n## Using docker\n\nSetup env variables in `app/core/.env` using `app/core/.env-example`\n\n#### Install and run\n\n```bash\ndocker-compose up -d web\n\n# you can track logs with:\ndocker-compose logs -f --tail=100 web\n```\n\nGo to: http://localhost:8000/api/docs/\n\n#### Migrations\n\nCreate migrations\n\n```bash\ndocker-compose exec web alembic revision --autogenerate -m \"Example model\"\n```\n\nApply migrations\n\n```bash\ndocker-compose exec web alembic upgrade head\n```\n\n#### Tests\n\nRun tests\n\n```bash\ndocker-compose exec web pytest .\n```\n\n## Without docker\n\n#### Install\n\n```bash\ncd app/\npip install -r requirements/development.txt\n```\n\nSetup env variables in `app/core/.env`.\n\n#### Run\n\n```bash\ncd app/\npython app/server.py\n```\n\nGo to: http://localhost:8000/api/docs/\n\n#### Migrations\n\nCreate migrations\n\n```bash\nalembic revision --autogenerate -m \"Example model\"\n```\n\nApply migrations\n\n```bash\nalembic upgrade head\n```\n\n#### Tests\n\nRun tests\n\n```bash\npytest .\n```\n\n## Environment Variables\n\nTo run this project, you will need to add the following environment variables to your app/core/.env file\n\n`BASE_URL` - default: http://localhost:8000\n\n`RELOAD` - default: false\n\n`DB_HOST` - default: localhost\n\n`DB_PORT` - default: 5432\n\n`DB_USER` - default: postgres\n\n`DB_PASS` - default: postgres\n\n`DB_BASE` - default: db\n\n`DB_ECHO` - default: false\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirzadelic%2Ffastapi-starter-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirzadelic%2Ffastapi-starter-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirzadelic%2Ffastapi-starter-project/lists"}