{"id":21905855,"url":"https://github.com/jcmdsbr/k8s-support-json-server","last_synced_at":"2026-05-13T05:37:03.024Z","repository":{"id":117404388,"uuid":"271400026","full_name":"jcmdsbr/k8s-support-json-server","owner":"jcmdsbr","description":"JSON Server REST API mocking based on plain JSON","archived":false,"fork":false,"pushed_at":"2021-04-03T19:15:41.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-27T07:30:03.541Z","etag":null,"topics":["json-server","k8s","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcmdsbr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-06-10T22:38:51.000Z","updated_at":"2021-04-03T19:15:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"93a8dce3-66e5-4553-81ab-fcfcfb47cc86","html_url":"https://github.com/jcmdsbr/k8s-support-json-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/jcmdsbr%2Fk8s-support-json-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fk8s-support-json-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fk8s-support-json-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fk8s-support-json-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcmdsbr","download_url":"https://codeload.github.com/jcmdsbr/k8s-support-json-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244919504,"owners_count":20531817,"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-server","k8s","kubernetes"],"created_at":"2024-11-28T16:38:37.795Z","updated_at":"2026-05-13T05:37:02.991Z","avatar_url":"https://github.com/jcmdsbr.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON SERVER :sunglasses:\r\n\r\n- JSON Server REST API mocking based on plain JSON\r\n\r\n## Description :books:\r\n\r\n[JSON Server](https://github.com/typicode/json-server) provides REST API mocking based on plain JSON.\r\nThis is a [docker](https://www.docker.io) image that eases setup.\r\n\r\n## Startup :heavy_check_mark:\r\n\r\nThis docker image is available as a [trusted build on the docker index](https://hub.docker.com/repository/docker/jcmds/jsonserver/),\r\nso there's no setup required.\r\nUsing this image for the first time will start a download automatically.\r\nFurther runs will be immediate, as the image will be cached locally.\r\n\r\nThe recommended way to run this container looks like this:\r\n\r\n```bash\r\n$ docker run -d -p {OutsidePort}:80 -v  {AbsolutePathToJsonFile}:/data/db.json jcmds/jsonserver\r\n```\r\n\r\nThe above example exposes the JSON Server REST API on port 80, so that you can now browse to **http://localhost/**\r\n\r\n### Help\r\n\r\nYou can supply any number of JSON Server arguments that will be passed through unmodified.\r\n\r\n```bash\r\n$ docker run -it --rm jcmds/jsonserver --help\r\n```\r\n\r\n### JSON source :construction:\r\n\r\nIf you mount a file to `/data/db.json` (as in the above example),\r\nit will automatically be used as the plain JSON data source file.\r\n\r\nA sample file could look like this:\r\n\r\n```json\r\n{\r\n  \"posts\": [\r\n    { \"id\": 1, \"body\": \"foo\" },\r\n    { \"id\": 2, \"body\": \"bar\" }\r\n  ],\r\n  \"comments\": [\r\n    { \"id\": 1, \"body\": \"baz\", \"postId\": 1 },\r\n    { \"id\": 2, \"body\": \"qux\", \"postId\": 2 }\r\n  ]\r\n}\r\n```\r\n\r\n## Run in Kubernetes ⚡\r\n- Change configMap in k8sdeploy.yaml\r\n- exec in terminal: kubectl apply -f k8sdeploy.yaml\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcmdsbr%2Fk8s-support-json-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcmdsbr%2Fk8s-support-json-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcmdsbr%2Fk8s-support-json-server/lists"}