{"id":26699824,"url":"https://github.com/hdevlinz/fake-api","last_synced_at":"2025-08-09T10:34:13.117Z","repository":{"id":283246747,"uuid":"951112988","full_name":"hdevlinz/fake-api","owner":"hdevlinz","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-19T08:31:52.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T23:17:10.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://genio-fake-api.vercel.app/","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/hdevlinz.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":"2025-03-19T07:16:54.000Z","updated_at":"2025-03-19T12:44:56.000Z","dependencies_parsed_at":"2025-03-19T09:33:59.368Z","dependency_job_id":null,"html_url":"https://github.com/hdevlinz/fake-api","commit_stats":null,"previous_names":["hdevlinz/nextjs-fastapi-demo","hdevlinz/fake-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hdevlinz%2Ffake-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hdevlinz%2Ffake-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hdevlinz%2Ffake-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hdevlinz%2Ffake-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hdevlinz","download_url":"https://codeload.github.com/hdevlinz/fake-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245749894,"owners_count":20666086,"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-03-26T23:17:13.225Z","updated_at":"2025-03-26T23:17:13.958Z","avatar_url":"https://github.com/hdevlinz.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://nextjs-fastapi-starter.vercel.app/\"\u003e\n    \u003cimg src=\"https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png\" height=\"96\"\u003e\n    \u003ch3 align=\"center\"\u003eNext.js FastAPI Starter\u003c/h3\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eSimple Next.j 14 boilerplate that uses \u003ca href=\"https://fastapi.tiangolo.com/\"\u003eFastAPI\u003c/a\u003e as the API backend.\u003c/p\u003e\n\n\u003cbr/\u003e\n\n## Introduction\n\nThis is a hybrid Next.js 14 + Python template. One great use case of this is to write Next.js apps that use Python AI libraries on the backend, while still having the benefits of Next.js Route Handlers and Server Side Rendering.\n\n## How It Works\n\nThe Python/FastAPI server is mapped into to Next.js app under `/api/`.\n\nThis is implemented using [`next.config.js` rewrites](https://github.com/digitros/nextjs-fastapi/blob/main/next.config.js) to map any request to `/api/py/:path*` to the FastAPI API, which is hosted in the `/api` folder.\n\nAlso, the app/api routes are available on the same domain, so you can use NextJs Route Handlers and make requests to `/api/...`.\n\nOn localhost, the rewrite will be made to the `127.0.0.1:8000` port, which is where the FastAPI server is running.\n\nIn production, the FastAPI server is hosted as [Python serverless functions](https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/python) on Vercel.\n\n## Demo\n\nhttps://nextjs-fastapi-starter.vercel.app/\n\n## Deploy Your Own\n\nYou can clone \u0026 deploy it to Vercel with one click:\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fdigitros%2Fnextjs-fastapi%2Ftree%2Fmain)\n\n## Developing Locally\n\nYou can clone \u0026 create this repo with the following command\n\n```bash\nnpx create-next-app nextjs-fastapi --example \"https://github.com/digitros/nextjs-fastapi\"\n```\n\n## Getting Started\n\nFirst, create and activate a virtual environment:\n\n```bash\npython3 -m venv venv\nsource venv/bin/activate\n```\n\nThen, install the dependencies:\n\n```bash\nnpm install\n# or\nyarn\n# or\npnpm install\n```\n\nThen, run the development server(python dependencies will be installed automatically here):\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nThe FastApi server will be running on [http://127.0.0.1:8000](http://127.0.0.1:8000) – feel free to change the port in `package.json` (you'll also need to update it in `next.config.js`).\n\n## Learn More\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n- [FastAPI Documentation](https://fastapi.tiangolo.com/) - learn about FastAPI features and API.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhdevlinz%2Ffake-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhdevlinz%2Ffake-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhdevlinz%2Ffake-api/lists"}