{"id":20485568,"url":"https://github.com/itsjustshubh/fastapi-fly-app-template","last_synced_at":"2026-04-11T04:33:10.769Z","repository":{"id":251548016,"uuid":"837731086","full_name":"itsjustshubh/fastapi-fly-app-template","owner":"itsjustshubh","description":"This repository provides a template for deploying a FastAPI application on Fly.io using GitHub Actions for continuous deployment. It includes a pre-configured GitHub Actions workflow and essential configuration files to get your FastAPI app running on Fly.io quickly and efficiently.","archived":false,"fork":false,"pushed_at":"2024-08-03T21:41:05.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-20T06:44:58.124Z","etag":null,"topics":["api","continuous-deployment","deployment","docker","fastapi","flyio","github-actions","python","template"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/itsjustshubh.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}},"created_at":"2024-08-03T21:14:29.000Z","updated_at":"2024-08-03T21:41:08.000Z","dependencies_parsed_at":"2024-08-03T22:27:53.387Z","dependency_job_id":null,"html_url":"https://github.com/itsjustshubh/fastapi-fly-app-template","commit_stats":null,"previous_names":["itsjustshubh/fastapi-fly-app-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/itsjustshubh/fastapi-fly-app-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsjustshubh%2Ffastapi-fly-app-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsjustshubh%2Ffastapi-fly-app-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsjustshubh%2Ffastapi-fly-app-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsjustshubh%2Ffastapi-fly-app-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsjustshubh","download_url":"https://codeload.github.com/itsjustshubh/fastapi-fly-app-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsjustshubh%2Ffastapi-fly-app-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31669116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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":["api","continuous-deployment","deployment","docker","fastapi","flyio","github-actions","python","template"],"created_at":"2024-11-15T16:31:40.411Z","updated_at":"2026-04-11T04:33:10.740Z","avatar_url":"https://github.com/itsjustshubh.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI App Deployment on Fly.io\n\nThis repository contains a simple FastAPI application that can be deployed on Fly.io. Follow the instructions below to get your app running.\n\n## Prerequisites\n\n1. **Fly CLI**: Install the Fly CLI by following the instructions at [Fly.io CLI installation](https://fly.io/docs/hands-on/install-flyctl/).\n2. **GitHub Repository**: Fork this repository to your GitHub account.\n\n## Getting Started\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/itsjustshubh/fastapi-fly-app-template.git\ncd fastapi-fly-app-template\n```\n\n### FastAPI Application\n\nThe FastAPI application is located in `main.py`:\n\n```python\nfrom fastapi import FastAPI\n\napp = FastAPI()\n\n@app.get(\"/\")\nasync def read_root():\n    return {\"message\": \"Hello, World!\"}\n```\n\n### Running Locally\n\n1. **Development Mode**\n\n   ```bash\n   fastapi dev\n   ```\n\n2. **Production Mode**\n\n   ```bash\n   fastapi run\n   ```\n\n### Deploy to Fly.io\n\n1. **Deploy Your App**\n\n   - Authenticate with Fly.io:\n\n     ```bash\n     flyctl auth login\n     ```\n\n   - Initialize your Fly.io app (if you haven’t done so already):\n\n     ```bash\n     fly launch --generate-name\n     ```\n\n2. **Push Changes**\n\n   ```bash\n   git add .\n   git commit -m \"Setup deployment workflow\"\n   git push origin master\n   ```\n\n   The GitHub Actions workflow will automatically deploy your app to Fly.io.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsjustshubh%2Ffastapi-fly-app-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsjustshubh%2Ffastapi-fly-app-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsjustshubh%2Ffastapi-fly-app-template/lists"}