{"id":18068436,"url":"https://github.com/chasenio/full-stack-fastapi-nextjs","last_synced_at":"2026-04-17T05:02:13.392Z","repository":{"id":258731861,"uuid":"874492208","full_name":"chasenio/full-stack-fastapi-nextjs","owner":"chasenio","description":"Full Stack With FastAPI \u0026 Next.js","archived":false,"fork":false,"pushed_at":"2024-10-19T00:51:36.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-30T03:59:05.000Z","etag":null,"topics":["fastapi","flyio","full-stack","fullstack","indiehacker","nextjs","wrangler"],"latest_commit_sha":null,"homepage":"https://full-stack-fastapi-nextjs.pages.dev","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/chasenio.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-10-17T23:38:59.000Z","updated_at":"2024-10-19T00:51:39.000Z","dependencies_parsed_at":"2024-10-20T19:32:52.172Z","dependency_job_id":null,"html_url":"https://github.com/chasenio/full-stack-fastapi-nextjs","commit_stats":null,"previous_names":["chasenio/full-stack-fastapi-nextjs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chasenio/full-stack-fastapi-nextjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chasenio%2Ffull-stack-fastapi-nextjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chasenio%2Ffull-stack-fastapi-nextjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chasenio%2Ffull-stack-fastapi-nextjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chasenio%2Ffull-stack-fastapi-nextjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chasenio","download_url":"https://codeload.github.com/chasenio/full-stack-fastapi-nextjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chasenio%2Ffull-stack-fastapi-nextjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31915900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["fastapi","flyio","full-stack","fullstack","indiehacker","nextjs","wrangler"],"created_at":"2024-10-31T08:06:27.592Z","updated_at":"2026-04-17T05:02:13.353Z","avatar_url":"https://github.com/chasenio.png","language":"Python","funding_links":["https://www.buymeacoffee.com/chasengao","https://www.buymeacoffee.com/invite/chasengao"],"categories":[],"sub_categories":[],"readme":"- [Full Stack With FastAPI \\\u0026 Next.js](#full-stack-with-fastapi--nextjs)\n- [Dependencies](#dependencies)\n- [Services ops](#services-ops)\n- [Deploy](#deploy)\n- [Support](#support)\n\n## Full Stack With FastAPI \u0026 Next.js\n\nThis is a full stack template using FastAPI and Next.js.\n\n- deploy api with [fly.io][1]\n  - app config with consul (via fly.io)\n- deploy frontend with [cloudflare pages][2]\n\n\n## Dependencies\n\nCommand line tools:\n- [flyctl](https://fly.io/docs/flyctl/install/)\n- [pnpm](https://pnpm.io/installation)\n- [wrangler](https://developers.cloudflare.com/workers/wrangler/install-and-update/)\n\n## Services ops\n\n**api**\n\ncreate your app with fly.io\n\n```shell\nfly apps create --name \u003cyour app name\u003e -o \u003corg name\u003e\n```\n\nattach consul to api\n\n```shell\nfly consul attach -a \u003cyour app name\u003e\n```\n\nset config with consul\n\n1. get consul url, `fly ssh console -a \u003cyour app name\u003e`\n2. show consul url, `echo $FLY_CONSUL_URL`\n\nexample:\n\n`https://:\u003ctoken\u003e@consul-syd-5.fly-shared.net/\u003capp name\u003e-xxxxxxxxxx/`\n\n- `consul-syd-5.fly-shared.net` is consul server, open in browser\n- click `Login` and input consul `\u003ctoken\u003e`\n- click `Key/Value` and input `\u003capp name\u003e-xxxxxxxxxx/\u003capp-name\u003e` in `Key or folder` input; example: `appname-xxxxxxxxx/appname`\n- copy `config.yml` content to `Value` input, click `Save`\n- `main.py` will read consul config; see [config.py][4]\n\n\n**ui**\n\ncreate project with cloudflare pages\n\n```shell\ncd ui \u0026\u0026 pnpm wrangler pages project create \u003capp name\u003e --production-branch master\n```\n\ndeploy project with cloudflare pages , See this file [Makefile][3]\n\n```shell\nmake ui # deploy ui\n```\n\n## Deploy\n\ndeploy api\n```\nmake api\n```\n\ndeploy frontend\n```\nmake ui\n```\n\n## Support\n\nIf you like this project, please consider supporting me for coffee ☕️\n\n[![Buy Me A Coffee](https://img.shields.io/badge/buy%20me%20-coffee-%2322BC18.svg)](https://www.buymeacoffee.com/chasengao) [![get youtself link](https://img.shields.io/badge/get%20youtself%20link-buymeacoffee-orange.svg)](https://www.buymeacoffee.com/invite/chasengao)\n\n\n[1]: https://fly.io\n[2]: https://pages.cloudflare.com\n[3]: Makefile\n[4]: src/config.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchasenio%2Ffull-stack-fastapi-nextjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchasenio%2Ffull-stack-fastapi-nextjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchasenio%2Ffull-stack-fastapi-nextjs/lists"}