{"id":21363628,"url":"https://github.com/fredericbonnet/instakittens-json-server","last_synced_at":"2025-07-07T02:39:50.011Z","repository":{"id":40952476,"uuid":"157777168","full_name":"fredericbonnet/instakittens-json-server","owner":"fredericbonnet","description":"Mock REST API server for the Instakittens project","archived":false,"fork":false,"pushed_at":"2023-01-04T21:38:57.000Z","size":2676,"stargazers_count":1,"open_issues_count":18,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T16:06:19.047Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/fredericbonnet.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}},"created_at":"2018-11-15T21:50:17.000Z","updated_at":"2020-02-27T10:28:08.000Z","dependencies_parsed_at":"2023-02-02T21:01:18.779Z","dependency_job_id":null,"html_url":"https://github.com/fredericbonnet/instakittens-json-server","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/fredericbonnet/instakittens-json-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericbonnet%2Finstakittens-json-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericbonnet%2Finstakittens-json-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericbonnet%2Finstakittens-json-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericbonnet%2Finstakittens-json-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredericbonnet","download_url":"https://codeload.github.com/fredericbonnet/instakittens-json-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericbonnet%2Finstakittens-json-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264003265,"owners_count":23542594,"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-22T06:20:25.509Z","updated_at":"2025-07-07T02:39:49.978Z","avatar_url":"https://github.com/fredericbonnet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Instakittens JSON Server\n\nThis project implements a simple mock REST API server for the [Instakittens\nproject](https://github.com/fredericbonnet/instakittens).\n\nIt is based on the awesome [JSON\nServer](https://github.com/typicode/json-server) package that lets you build a\nfully working REST API server from a simple JSON file.\n\n## JSON Database\n\nThe [mock database file](db.json) was generated by the companion app\n[Instakittens Data\nGenerator](https://github.com/fredericbonnet/instakittens-data-generator).\n\n## REST API server\n\nPowered by [JSON Server](https://github.com/typicode/json-server).\n\n## Tests\n\n- Test frameworks: [Mocha](https://mochajs.org/),\n  [Cucumber-js](https://github.com/cucumber/cucumber-js), [Cypress](https://www.cypress.io/)\n- Assertion library: [Chai](https://www.chaijs.com/)\n- E2E testing: [Supertest](https://github.com/visionmedia/supertest)\n- Mocking: [Sinon](https://sinonjs.org/), [Sinon-Chai](https://github.com/domenic/sinon-chai), [node-mocks-http](https://github.com/howardabrams/node-mocks-http), [mock-require](https://github.com/boblauer/mock-require)\n\n## NPM Scripts\n\n### Serving the app\n\nStart the development server on port 3000 with persistent data in `db.json`:\n\n```sh\nnpm run start\n```\n\nStart the development server on port 3000 with non-persistent, fresh data from `db.json`:\n\n```sh\nnpm run start:fresh\n```\n\nStart the development server on port 3000 in watch and fresh mode:\n\n```sh\nnpm run watch\n```\n\n### Unit tests\n\nRun unit tests once:\n\n```sh\nnpm run test\n```\n\nRun unit tests in watch mode:\n\n```sh\nnpm run test:watch\n```\n\n### End-to-end tests\n\nEnd-to-end tests will spawn their own server instance on a random port.\n\n### Supertest\n\nRun Supertest tests once:\n\n```sh\nnpm run e2e\n```\n\nRun Supertest tests in watch mode:\n\n```sh\nnpm run e2e:watch\n```\n\nRun Supertest Cucumber scenarios once:\n\n```sh\nnpm run cucumber\n```\n\nRun Supertest Cucumber scenarios in watch mode:\n\n```sh\nnpm run cucumber:watch\n```\n\n#### Cypress\n\nRun Cypress tests \u0026 scenarios once:\n\n```sh\nnpm run cypress:run\n```\n\nOpen Cypress GUI:\n\n```sh\nnpm run cypress:open\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredericbonnet%2Finstakittens-json-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredericbonnet%2Finstakittens-json-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredericbonnet%2Finstakittens-json-server/lists"}