{"id":15706936,"url":"https://github.com/petehouston/dart-json-server","last_synced_at":"2025-05-12T19:12:08.391Z","repository":{"id":56833405,"uuid":"218926135","full_name":"petehouston/dart-json-server","owner":"petehouston","description":"Launch JSON server for web and mobile apps development from CLI without complicated backend setup for Dart and Flutter development.","archived":false,"fork":false,"pushed_at":"2019-11-04T03:57:35.000Z","size":36,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-12T19:12:02.255Z","etag":null,"topics":["cli","cli-app","command-line","dart","dart-cli","dart-package","dart-server","dart2","dartlang","flutter","hacktoberfest","webdev"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/json_server","language":"Dart","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/petehouston.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-01T06:26:35.000Z","updated_at":"2024-06-06T13:28:47.000Z","dependencies_parsed_at":"2022-09-08T07:41:34.447Z","dependency_job_id":null,"html_url":"https://github.com/petehouston/dart-json-server","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petehouston%2Fdart-json-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petehouston%2Fdart-json-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petehouston%2Fdart-json-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petehouston%2Fdart-json-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petehouston","download_url":"https://codeload.github.com/petehouston/dart-json-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253805854,"owners_count":21967053,"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":["cli","cli-app","command-line","dart","dart-cli","dart-package","dart-server","dart2","dartlang","flutter","hacktoberfest","webdev"],"created_at":"2024-10-03T20:31:24.305Z","updated_at":"2025-05-12T19:12:08.362Z","avatar_url":"https://github.com/petehouston.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Server\n\nLaunch JSON server for web and mobile apps development from CLI without complicated backend setup.\n\n## Installation\n\nYou can install the package from the command line:\n\n```sh\n$ pub global activate json_server\n```\n\n## Usage\n\nThe CLI is named `jserver`.\n\n```\njserver --data=\u003cpath to JSON file\u003e\n```\n\nAvailable options you can use:\n\n* `-d, --data`: path to JSON database file. **Required**.\n* `-h, --host`: specify the IP address to serve. Default to `127.0.0.1`.\n* `-p, --port`: specify the port to use. Default to `1711`.\n\n### JSON Format\n\nTypically, for JSON database, you need to use following structure.\n\n```json\n{\n  \"API_PATH_1\": RESPONSE_OBJECT_1,\n  \"API_PATH_2\": RESPONSE_OBJECT_2,\n}\n```\n\n**API_PATH** must start with a slash `/` to mark it as a serving path for API.\n**RESPONSE_OBJECT**: should be either `Array` or `Object`.\n\n\n### Examples\n\nTo start a default server, which binds to `127.0.0.1:1711`, using `database.json`.\n\n```\n$ jserver -d database.json\n```\n\nTo start server at `localhost:8888` using `api.json` for database.\n\n```\n$ jserver -h localhost -p 8888 -d api.json\n```\n\n# LICENSE\n\n[MIT](LICENSE.md) @ 2019 [Pete Houston](https://petehouston.com).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetehouston%2Fdart-json-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetehouston%2Fdart-json-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetehouston%2Fdart-json-server/lists"}