{"id":16434836,"url":"https://github.com/zce/locally-server","last_synced_at":"2026-03-03T01:31:41.240Z","repository":{"id":41883126,"uuid":"102482573","full_name":"zce/locally-server","owner":"zce","description":"A JSON file RESTful API based on json-server for zce/weapp-locally \u0026 zce/quickapp-locally","archived":false,"fork":false,"pushed_at":"2023-12-01T22:00:51.000Z","size":592,"stargazers_count":14,"open_issues_count":26,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-08T09:51:48.716Z","etag":null,"topics":["json-api","json-server","now","now-sh","rest-api","restful"],"latest_commit_sha":null,"homepage":"https://locally.now.sh","language":"HTML","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/zce.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}},"created_at":"2017-09-05T13:09:13.000Z","updated_at":"2023-03-08T04:01:23.000Z","dependencies_parsed_at":"2023-01-27T19:15:40.000Z","dependency_job_id":null,"html_url":"https://github.com/zce/locally-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zce%2Flocally-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zce%2Flocally-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zce%2Flocally-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zce%2Flocally-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zce","download_url":"https://codeload.github.com/zce/locally-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240746959,"owners_count":19850996,"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-api","json-server","now","now-sh","rest-api","restful"],"created_at":"2024-10-11T08:50:15.955Z","updated_at":"2026-03-03T01:31:31.222Z","avatar_url":"https://github.com/zce.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# locally-server\n\n[![Build Status][travis-image]][travis-url]\n[![Dependency Status][dependency-image]][dependency-url]\n[![devDependency Status][devdependency-image]][devdependency-url]\n[![Code Style][style-image]][style-url]\n\n\u003e A JSON file RESTful API with authorization based on [json-server](https://github.com/typicode/json-server) for [zce/weapp-locally](https://github.com/zce/weapp-locally) \u0026 [zce/quickapp-locally](https://github.com/zce/quickapp-locally)\n\n## Usage\n\n```sh\n# clone repo\n$ git clone https://github.com/zce/locally-server.git \u003cmy-api-server\u003e\n\n# change directory\n$ cd \u003cmy-api-server\u003e\n\n# install dependencies\n$ yarn # or npm install\n```\n\nmodify [database.json](database.json) file\n\n```sh\n# serve with hot reload at http://localhost:3000\n$ yarn dev\n```\n\n## JSON Server Resources Endpoints\n\n- Slides: `/slides/:id?`\n- Categories: `/categories/:id?`\n- Shops: `/shops/:id?`\n\nTo access and modify resources, you can use any HTTP method: `GET` `POST` `PUT` `PATCH` `DELETE` `OPTIONS`\n\n## Backdoor Endpoints\n\n### GET `/backdoor/delay`\n\nadd a delay of 1000ms for each endpoint\n\n```sh\n$ curl http://localhost:3000/backdoor/delay\n```\n\n## Related\n\n- [zce/dashboard-server](https://github.com/zce/dashboard-server) - A JSON file RESTful API with JWT authorization based on json-server for [zce/dashboard](https://github.com/zce/dashboard)\n\n## License\n\n[MIT](LICENSE) \u0026copy; [汪磊](https://zce.me)\n\n\n\n[travis-image]: https://img.shields.io/travis/zce/locally-server.svg\n[travis-url]: https://travis-ci.org/zce/locally-server\n[dependency-image]: https://img.shields.io/david/zce/locally-server.svg\n[dependency-url]: https://david-dm.org/zce/locally-server\n[devdependency-image]: https://img.shields.io/david/dev/zce/locally-server.svg\n[devdependency-url]: https://david-dm.org/zce/locally-server?type=dev\n[style-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n[style-url]: https://standardjs.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzce%2Flocally-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzce%2Flocally-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzce%2Flocally-server/lists"}