{"id":50675649,"url":"https://github.com/1010code/fastapi-fly-demo","last_synced_at":"2026-06-08T15:33:09.392Z","repository":{"id":327049343,"uuid":"1106938829","full_name":"1010code/fastapi-fly-demo","owner":"1010code","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-01T12:07:42.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-04T00:36:34.364Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/1010code.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-30T08:59:44.000Z","updated_at":"2025-12-01T12:07:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/1010code/fastapi-fly-demo","commit_stats":null,"previous_names":["1010code/fastapi-fly-demo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/1010code/fastapi-fly-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1010code%2Ffastapi-fly-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1010code%2Ffastapi-fly-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1010code%2Ffastapi-fly-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1010code%2Ffastapi-fly-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1010code","download_url":"https://codeload.github.com/1010code/fastapi-fly-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1010code%2Ffastapi-fly-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34069491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"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":[],"created_at":"2026-06-08T15:33:08.490Z","updated_at":"2026-06-08T15:33:09.383Z","avatar_url":"https://github.com/1010code.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI on Fly.io 部署範例\n\n這是一個在 Fly.io 上部署 FastAPI 應用程式的範例專案。\n\n## 操作說明\n\n關於本專案的完整設定與部署教學，請參考以下文章：\n\n[教學文章：將 FastAPI 部署到 Render](https://andy6804tw.github.io/2025/11/30/deploy-fly-on-render/)\n\n\n## 本地端開發\n\n### 需求\n\n*   Python 3.8+\n*   pip\n\n### 安裝與啟動\n\n1.  複製專案：\n    ```bash\n    git clone https://github.com/andy6804tw/fastapi-fly-demo.git\n    cd fastapi-fly-demo\n    ```\n\n2.  安裝依賴套件：\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n3.  啟動本地伺服器：\n    ```bash\n    uvicorn main:app --reload\n    ```\n\n    應用程式將會在 `http://127.0.0.1:8000` 上運行。\n\n## 部署到 Fly.io\n\n### 需求\n\n*   安裝 [flyctl](https://fly.io/docs/hands-on/install-flyctl/)\n*   註冊並登入 Fly.io 帳號\n\n### 部署步驟\n\n1.  登入 Fly.io CLI：\n    ```bash\n    fly auth login\n    ```\n\n2.  啟動並部署應用程式：\n    ```bash\n    fly launch\n    ```\n    \u003e `fly launch` 會自動偵測專案並建立 `fly.toml` 設定檔，接著進行部署。\n\n3.  (可選) 未來若有更新，僅需執行：\n    ```bash\n    fly deploy\n    ```\n\n## API 端點\n\n*   `GET /`: 返回一個歡迎訊息。\n*   `GET /health`: 返回應用程式的健康狀態。\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1010code%2Ffastapi-fly-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1010code%2Ffastapi-fly-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1010code%2Ffastapi-fly-demo/lists"}