{"id":13451887,"url":"https://github.com/boyney123/mockit","last_synced_at":"2025-04-08T08:18:19.091Z","repository":{"id":38992370,"uuid":"166083777","full_name":"boyney123/mockit","owner":"boyney123","description":"A tool to quickly mock out end points, setup delays and more...","archived":false,"fork":false,"pushed_at":"2023-04-18T07:05:20.000Z","size":31608,"stargazers_count":1581,"open_issues_count":63,"forks_count":83,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-01T07:41:42.016Z","etag":null,"topics":["api","http","json","mock","stub","tool"],"latest_commit_sha":null,"homepage":"https://mockit.netlify.com/","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/boyney123.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null}},"created_at":"2019-01-16T17:42:16.000Z","updated_at":"2025-03-14T12:41:26.000Z","dependencies_parsed_at":"2023-02-02T20:02:42.111Z","dependency_job_id":"66de277d-5b72-440e-94a1-6c4171cc88bb","html_url":"https://github.com/boyney123/mockit","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boyney123%2Fmockit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boyney123%2Fmockit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boyney123%2Fmockit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boyney123%2Fmockit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boyney123","download_url":"https://codeload.github.com/boyney123/mockit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801176,"owners_count":20998339,"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":["api","http","json","mock","stub","tool"],"created_at":"2024-07-31T07:01:05.928Z","updated_at":"2025-04-08T08:18:19.061Z","avatar_url":"https://github.com/boyney123.png","language":"JavaScript","readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ch2\u003eMockIt: A tool to quickly create mocked APIs.\u003c/h2\u003e\n\u003cp\u003eStop wasting time mocking APIs. MockIt gives you an interface to configure and create REAL mocked endpoints for your applications. Whilst you wait for APIS to be built use MockIt to talk to a real service.\u003c/\u003e\n\n  \u003chr /\u003e\n\n[![Travis](https://img.shields.io/travis/boyney123/mockit/master.svg)](https://travis-ci.org/boyney123/mockit)\n[![CodeCov](https://codecov.io/gh/boyney123/mockit/branch/master/graph/badge.svg?token=AoXW3EFgMP)](https://codecov.io/gh/boyney123/mockit)\n[![Netlify Status](https://api.netlify.com/api/v1/badges/6d5acca1-0959-4d92-a739-08f725fdc464/deploy-status)](https://app.netlify.com/sites/mockit/deploys)\n[![MIT License][license-badge]][license]\n[![PRs Welcome][prs-badge]][prs]\n[![All Contributors](https://img.shields.io/badge/all_contributors-13-orange.svg?style=flat-square)](#contributors-)\n\n[![Watch on GitHub][github-watch-badge]][github-watch]\n[![Star on GitHub][github-star-badge]][github-star]\n[![Tweet][twitter-badge]][twitter]\n\n[Donate ☕](https://www.paypal.me/boyney123/5)\n\n\u003chr /\u003e\n\n\u003cimg alt=\"header\" src=\"./images/demo.gif\" /\u003e\n\n  \u003ch3\u003eFeatures: Live Reload, Chaos Engineering, Authentication, CORS and more...\u003c/h3\u003e\n\n[Read the Docs](https://mockit.netlify.com/) | [Edit the Docs](https://github.com/boyney123/mockit-docs)\n\n\u003c/div\u003e\n\n\u003chr/\u003e\n\n# The problem\n\nWhen building applications you often need to interact with services. When the services are not ready to be consumed you have a few options:\n\n1. Mock out the response with a JSON file\n2. Create a mock service yourself\n3. Use MockIt.\n\n# This solution\n\nThis tool was designed to help developers quickly create endpoints for their applications. No need to create a server, just use docker and run this project locally. You can create, edit and manage routes to your API. Every change to the API will be reflected on the server and updated straight away.\n\nThis tool comes with a few features out the box:\n\n- CORS\n- Basic Authentication\n- Chaos Monkey (Unleash a monkey to take down your endpoints)\n\nMore information about how it works, its features can be found on the docs.\n\n[Read the docs and get started](https://mockit.netlify.com/)\n\n# Getting Started\n\n_Make sure you have docker running_\n\n```sh\ngit clone https://github.com/boyney123/mockit.git\n```\n\n```sh\ncd mockit \u0026\u0026 docker-compose up --build -d\n```\n\nOnce everything is up and running go to [http://localhost:5000](http://localhost:5000) to see MockIt.\n\nFor instructions on how to use MockIt please see the [documentation](https://mockit.netlify.com/docs/getting-started/routes).\n\n## Permissions\n\n_If you get error: `Couldn't connect to Docker daemon at http+docker://localhost - is it running?` you might need run_ with _sudo_\n\n```\nsudo docker-compose up --build -d\n```\n\n## Local install and running tests\n\nIf you want to install and run the tests for all apps then you can run this script:\n\n```\nsh install-and-test.sh\n```\n\n_If you have any problems with permissions you might need to chmod the file_\n\n```\nchmod +x install-and-test.sh \u0026\u0026 ./install-and-test.sh\n```\n\n# Viewing the dashboard, server and API\n\nOnce Docker is running you have three applications running on the machine.\n\n1. The client: [http://localhost:5000](http://localhost:5000)\n2. The client-server: [http://localhost:4000](http://localhost:4000)\n3. The MockIt API (this is the server that runs your API): [http://localhost:3000](http://localhost:3000)\n\nIf you want to view the dashboard to get started go to [http://localhost:5000](http://localhost:5000).\n\nIf you want to interact with your new API go to [http://localhost:3000](http://localhost:3000).\n\nFor example, if you have a `/user` route setup, go to [http://localhost:3000/user](http://localhost:3000/user) to view the data.\n\n# Tools\n\n- [nodemon - Listening for changes](https://github.com/remy/nodemon)\n- [Express](https://expressjs.com/)\n- [React](https://reactjs.org/)\n- [Docker](https://www.docker.com/)\n\n## Documentation\n\n- [Docusaurus](https://docusaurus.io/)\n\n## Testing\n\n- [jest](https://jestjs.io/)\n- [react-testing-library](https://github.com/kentcdodds/react-testing-library)\n- [supertest](https://github.com/visionmedia/supertest)\n\n# Contributing\n\nIf you have any questions, features or issues please raise any issue or pull requests you like.\n\n[spectrum-badge]: https://withspectrum.github.io/badge/badge.svg\n[spectrum]: https://spectrum.chat/explore-tech\n[license-badge]: https://img.shields.io/github/license/boyney123/mockit.svg?color=yellow\n[license]: https://github.com/boyney123/react.explore-tech.org/blob/master/LICENSE\n[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: http://makeapullrequest.com\n[github-watch-badge]: https://img.shields.io/github/watchers/boyney123/mockit.svg?style=social\n[github-watch]: https://github.com/boyney123/mockit/watchers\n[twitter]: https://twitter.com/intent/tweet?text=Check%20out%20mockit%20by%20%40boyney123%20https%3A%2F%2Fgithub.com%2Fboyney123%2Fmockit%20%F0%9F%91%8D\n[twitter-badge]: https://img.shields.io/twitter/url/https/github.com/boyney123/mockit.svg?style=social\n[github-star-badge]: https://img.shields.io/github/stars/boyney123/mockit.svg?style=social\n[github-star]: https://github.com/boyney123/mockit/stargazers\n\n# Donating\n\nIf you find this tool useful, feel free to buy me a ☕ 👍\n\n[Buy a drink](https://www.paypal.me/boyney123/5)\n\n# License\n\nMIT.\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://medium.com/@boyney123\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/3268013?v=4\" width=\"100px;\" alt=\"David Boyne\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eDavid Boyne\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/boyney123/mockit/commits?author=boyney123\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/boyney123/mockit/commits?author=boyney123\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#design-boyney123\" title=\"Design\"\u003e🎨\u003c/a\u003e \u003ca href=\"#ideas-boyney123\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"#review-boyney123\" title=\"Reviewed Pull Requests\"\u003e👀\u003c/a\u003e \u003ca href=\"#tool-boyney123\" title=\"Tools\"\u003e🔧\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://medium.com/@liran.tal\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/316371?v=4\" width=\"100px;\" alt=\"Liran Tal\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eLiran Tal\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#security-lirantal\" title=\"Security\"\u003e🛡️\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://fb.com/RemoveU\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/19208123?v=4\" width=\"100px;\" alt=\"Hongarc\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eHongarc\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/boyney123/mockit/commits?author=Hongarc\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://hugo.pro\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/180032?v=4\" width=\"100px;\" alt=\"Hugo Locurcio\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eHugo Locurcio\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/boyney123/mockit/commits?author=Calinou\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://www.andrewroberthall.co.uk\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/724328?v=4\" width=\"100px;\" alt=\"Andrew Hall\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAndrew Hall\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/boyney123/mockit/commits?author=FattusMannus\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://grainger.xyz\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/1332395?v=4\" width=\"100px;\" alt=\"Peter Grainger\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ePeter Grainger\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/boyney123/mockit/commits?author=peterjgrainger\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/wohlben\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/9362553?v=4\" width=\"100px;\" alt=\"Ben\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eBen\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/boyney123/mockit/commits?author=wohlben\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/MCRayRay\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/2843957?v=4\" width=\"100px;\" alt=\"MCRayRay\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMCRayRay\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/boyney123/mockit/commits?author=MCRayRay\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/fbricon\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/148698?v=4\" width=\"100px;\" alt=\"Fred Bricon\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eFred Bricon\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/boyney123/mockit/commits?author=fbricon\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://blog.missj.club\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/19582252?v=4\" width=\"100px;\" alt=\"fliu2476\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003efliu2476\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/boyney123/mockit/issues?q=author%3Afliu2476\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/de314\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/816693?v=4\" width=\"100px;\" alt=\"David Esposito\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eDavid Esposito\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/boyney123/mockit/commits?author=de314\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/mlaopane\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/23735276?v=4\" width=\"100px;\" alt=\"Mickaël\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMickaël\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/boyney123/mockit/commits?author=mlaopane\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/zecarrera\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/4092515?v=4\" width=\"100px;\" alt=\"José Carréra Alvares Neto\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJosé Carréra Alvares Neto\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/boyney123/mockit/commits?author=zecarrera\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","funding_links":["https://www.paypal.me/boyney123/5"],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboyney123%2Fmockit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboyney123%2Fmockit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboyney123%2Fmockit/lists"}