{"id":24901928,"url":"https://github.com/lancegin/mockman","last_synced_at":"2025-04-09T19:20:36.433Z","repository":{"id":37216646,"uuid":"131273212","full_name":"LanceGin/Mockman","owner":"LanceGin","description":"Manage and start the mock servers on your local platform easily","archived":false,"fork":false,"pushed_at":"2022-12-08T17:16:00.000Z","size":3547,"stargazers_count":291,"open_issues_count":27,"forks_count":28,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-02T12:53:48.389Z","etag":null,"topics":["api-mock","electron","mock","mock-server","vue"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LanceGin.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":"2018-04-27T09:07:34.000Z","updated_at":"2024-08-23T12:16:35.000Z","dependencies_parsed_at":"2023-01-25T15:00:57.352Z","dependency_job_id":null,"html_url":"https://github.com/LanceGin/Mockman","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanceGin%2FMockman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanceGin%2FMockman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanceGin%2FMockman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanceGin%2FMockman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LanceGin","download_url":"https://codeload.github.com/LanceGin/Mockman/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248094991,"owners_count":21046770,"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-mock","electron","mock","mock-server","vue"],"created_at":"2025-02-01T21:18:47.094Z","updated_at":"2025-04-09T19:20:36.413Z","avatar_url":"https://github.com/LanceGin.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg alt=\"Mockman\" width=\"150\" height=\"150\" src=\"http://orhcxc3kd.bkt.clouddn.com/256x256.png\"/\u003e\n\n[中文文档](./README_zh.md)\n\n![](https://img.shields.io/github/repo-size/lancegin/mockman.svg)\n![](https://img.shields.io/github/release/lancegin/mockman.svg)\n![](https://img.shields.io/github/last-commit/lancegin/mockman.svg)\n[![Build Status](https://travis-ci.org/LanceGin/Mockman.svg?branch=master)](https://travis-ci.org/LanceGin/Mockman)\n[![Build status](https://ci.appveyor.com/api/projects/status/9hktw5nvhbh44wtm?svg=true)](https://ci.appveyor.com/project/LanceGin/mockman)\n\n\u003e `Mockman` is a powerful and convenient tool that helps you to manage and start mock servers locally.\n\u003e \n\u003e With the app, you can easily configure the routes, request format and response of a mock server\n\n## Screenshot\n\n![Mockman](https://i.loli.net/2018/11/03/5bdd4dd2bf440.png)\n![Logger](https://i.loli.net/2018/11/03/5bdd4deac142f.png)\n\n## Usage\n\n![Feature](http://orhcxc3kd.bkt.clouddn.com/mockman-preview.jpg)\n\n1. Create your mock server - `click the add button`\n2. Configure the `name`, `port` and `prefix` of your move server, make sure the port is not in use, or Mockman will give you a error notification.\n3. Add some apis for your mock server.\n4. Configure the `method`, `route`, `response code`, `latency`, `required request options` and `reponse data` of each api.\n5. Start the server - `click the start button`.\n6. After all, you can test your api locally.\n\n\u003e Where will your api data be stored?\n\u003e \n\u003e \u003e Your data will be stored as a `sqlite file` absolutely on your local, the path will be different on different operation system. \n\u003e \n\u003e \u003e * `%APPDATA%`  for Windows\n\u003e \u003e * `$XDG_CONFIG_HOME or ~/.config` for Linux\n\u003e \u003e * `~/Library/Application Support` for macOS\n\u003e \n\u003e Be attention before you start https server\n\u003e \n\u003e \u003e * Mockman is using `self-signed-certification` to create https server\n\u003e \u003e * Install [rootCA](https://github.com/LanceGin/Mockman/releases/download/1.0.5/rootCA.pem) on your client and trust it before you send https requests\n\u003e \n\n## Todos\n\n### Server\n\n- [x] ipcMain \u0026\u0026 ipcRender communication\n- [x] dababase support\n- [x] create a new mock\n- [x] update a mock\n- [x] remove a mock\n- [x] query a mock info\n- [x] create an api\n- [x] update an api\n- [x] remove an api\n- [x] query an api info\n- [x] start an express server with a mock config\n- [x] handle errors while starting the server\n\n### Client\n\n- [x] brand header dislay\n- [x] mock sider display\n- [x] mock-detail and api-list display\n- [x] api-detail display\n- [x] create a new mock\n- [x] update a mock\n- [x] remove a mock\n- [x] query a mock info\n- [x] create an api\n- [x] update an api\n- [x] remove an api\n- [x] query an api info\n- [x] request params check list\n- [x] response k-v input group\n- [x] response code editor\n- [x] add blur event to jsonEditor\n- [x] add a log panel to show the logs of an active mock server process\n- [x] add https support\n- [ ] group the apis with tag\n- [ ] check the conflict of all mocks\n- [ ] Export/Import mock or api configurations\n\n\n\n## License\n\n[![license](https://img.shields.io/github/license/lancegin/mockman.svg)]()\n\n## Contribute\n\n``` bash\n# install the dependencies \nnpm install\n\n# serve with hot reload at localhost:9080\nnpm run dev \n\n# build mockman\nnpm run build\n\n# run unit tests\nnpm test \n\n# lint all JS/Vue component files in `src/`\nnpm run lint \n\n```\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancegin%2Fmockman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flancegin%2Fmockman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancegin%2Fmockman/lists"}