{"id":23663996,"url":"https://github.com/jacobhsu/json-server-vercel","last_synced_at":"2025-12-06T15:30:14.324Z","repository":{"id":269005830,"uuid":"906132894","full_name":"JacobHsu/json-server-vercel","owner":"JacobHsu","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-20T08:54:49.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T05:37:24.350Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://json-server-vercel-chi.vercel.app","language":"JavaScript","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/JacobHsu.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-12-20T08:30:19.000Z","updated_at":"2024-12-20T08:54:53.000Z","dependencies_parsed_at":"2024-12-20T09:40:18.258Z","dependency_job_id":null,"html_url":"https://github.com/JacobHsu/json-server-vercel","commit_stats":null,"previous_names":["jacobhsu/json-server-vercel"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobHsu%2Fjson-server-vercel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobHsu%2Fjson-server-vercel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobHsu%2Fjson-server-vercel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobHsu%2Fjson-server-vercel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JacobHsu","download_url":"https://codeload.github.com/JacobHsu/json-server-vercel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239662724,"owners_count":19676435,"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":"2024-12-29T05:37:34.533Z","updated_at":"2025-12-06T15:30:14.249Z","avatar_url":"https://github.com/JacobHsu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Deploy JSON Server to Vercel\n\nA template to deploy [JSON Server](https://github.com/typicode/json-server) to [Vercel](https://vercel.com), allow you to run fake REST API online!\n\nDemo from this repository: \n\n1. https://json-server-in.vercel.app\n2. https://json-server-in.vercel.app/api/posts\n\n![Powered by Vercel](https://images.ctfassets.net/e5382hct74si/78Olo8EZRdUlcDUFQvnzG7/fa4cdb6dc04c40fceac194134788a0e2/1618983297-powered-by-vercel.svg)\n\n### How to use\n\n1. Click \"**Use this template**\" or clone this repository.\n2. Update or use the default [`db.json`](./db.json) in the repository.\n3. Sign Up or login into [Vercel](https://vercel.com).\n4. From the Vercel dashboard, click \"**+ New Project**\" then \"**Import**\" your repository.\n5. In the \"**Configure Project**\" screen, leave everything default and click \"**Deploy**\".\n6. Wait until deployment is done, and your own JSON server is ready to serve!\n\n## Default `db.json`\n\n```json\n{\n  \"posts\": [\n    { \"id\": 1, \"title\": \"json-server\", \"author\": \"typicode\" }\n  ],\n  \"comments\": [\n    { \"id\": 1, \"body\": \"some comment\", \"postId\": 1 }\n  ],\n  \"profile\": { \"name\": \"typicode\" }\n}\n```\n\n## Enable write operations\n\nBy default, only GET operation is allowed, thanks to the contribution by [@VicAv99](https://www.github.com/VicAv99) at [#6](https://github.com/kitloong/json-server-vercel/issues/6), we can now enable write operations as well.\n\nYou can find the example code in [`api/server.js`](./api/server.js).\n\n## Reference\n\n1. https://github.com/typicode/json-server\n2. https://vercel.com\n3. https://shadowsmith.com/how-to-deploy-an-express-api-to-vercel\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobhsu%2Fjson-server-vercel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacobhsu%2Fjson-server-vercel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobhsu%2Fjson-server-vercel/lists"}