{"id":19131999,"url":"https://github.com/guaradata/guaradata-json-server-vercel","last_synced_at":"2026-06-08T13:30:16.270Z","repository":{"id":240254294,"uuid":"801227299","full_name":"guaradata/guaradata-json-server-vercel","owner":"guaradata","description":"Mock de conteúdos do blog Guaradata.","archived":false,"fork":false,"pushed_at":"2024-05-22T15:56:05.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-03T11:27:59.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://guaradata-server.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/guaradata.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-05-15T20:33:15.000Z","updated_at":"2024-10-11T18:51:01.000Z","dependencies_parsed_at":"2024-05-22T17:08:13.116Z","dependency_job_id":null,"html_url":"https://github.com/guaradata/guaradata-json-server-vercel","commit_stats":null,"previous_names":["guaradata/guaradata-json-server-vercel"],"tags_count":0,"template":false,"template_full_name":"kitloong/json-server-vercel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guaradata%2Fguaradata-json-server-vercel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guaradata%2Fguaradata-json-server-vercel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guaradata%2Fguaradata-json-server-vercel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guaradata%2Fguaradata-json-server-vercel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guaradata","download_url":"https://codeload.github.com/guaradata/guaradata-json-server-vercel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240211902,"owners_count":19765928,"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-11-09T06:16:52.307Z","updated_at":"2026-06-08T13:30:16.071Z","avatar_url":"https://github.com/guaradata.png","language":"JavaScript","funding_links":["https://github.com/sponsors/kitloong","https://buymeacoffee.com/kitloong"],"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%2Fguaradata%2Fguaradata-json-server-vercel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguaradata%2Fguaradata-json-server-vercel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguaradata%2Fguaradata-json-server-vercel/lists"}