{"id":22425422,"url":"https://github.com/soliveirarm/json-data","last_synced_at":"2025-10-25T14:44:11.172Z","repository":{"id":246945496,"uuid":"822801141","full_name":"soliveirarm/json-data","owner":"soliveirarm","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-05T18:43:27.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T11:17:56.101Z","etag":null,"topics":["json-data","json-database","json-server","vercel"],"latest_commit_sha":null,"homepage":"https://json-data-so.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/soliveirarm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"kitloong","buy_me_a_coffee":"kitloong"}},"created_at":"2024-07-01T21:18:00.000Z","updated_at":"2024-07-05T18:45:30.000Z","dependencies_parsed_at":"2024-07-06T00:25:54.840Z","dependency_job_id":null,"html_url":"https://github.com/soliveirarm/json-data","commit_stats":null,"previous_names":["soliveirarm/json-data"],"tags_count":0,"template":false,"template_full_name":"kitloong/json-server-vercel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soliveirarm%2Fjson-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soliveirarm%2Fjson-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soliveirarm%2Fjson-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soliveirarm%2Fjson-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soliveirarm","download_url":"https://codeload.github.com/soliveirarm/json-data/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245791967,"owners_count":20672671,"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":["json-data","json-database","json-server","vercel"],"created_at":"2024-12-05T19:14:05.202Z","updated_at":"2025-10-25T14:44:11.093Z","avatar_url":"https://github.com/soliveirarm.png","language":"JavaScript","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","funding_links":["https://github.com/sponsors/kitloong","https://buymeacoffee.com/kitloong"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoliveirarm%2Fjson-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoliveirarm%2Fjson-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoliveirarm%2Fjson-data/lists"}