# simple_mocker

> You can create a mock system in a program window,easy and intuitive. this project use eletron、vue、express、Nedb and so on.

Latest version **0.0.6** (published 2019-02-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install simple_mocker
pnpm add simple_mocker
yarn add simple_mocker
bun add simple_mocker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2019-02-18 |
| First published | 2019-02-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Unpacked size | 886.6 KB |
| Known vulnerabilities | 0 (+26 in 3 direct dependencies) |
| Install scripts | yes |
| Author | hcj |
| Maintainers | huangssssx |
| Keywords | mock, electron, mocker |

## Links

- npm: https://www.npmjs.com/package/simple_mocker
- Repository: https://github.com/huangssssx/simple_mocker
- Homepage: https://github.com/huangssssx/simple_mocker#readme
- Issues: https://github.com/huangssssx/simple_mocker/issues
- npm.io page: https://npm.io/package/simple_mocker

## Dependencies (12)

- [vue](https://npm.io/package/vue.md) ^2.5.16
- [nedb](https://npm.io/package/nedb.md) ^1.8.0
- [vuex](https://npm.io/package/vuex.md) ^3.0.1
- [axios](https://npm.io/package/axios.md) ^0.18.0
- [express](https://npm.io/package/express.md) ^4.16.4
- [vue-router](https://npm.io/package/vue-router.md) ^3.0.1
- [vue-electron](https://npm.io/package/vue-electron.md) ^1.0.6
- [json-beautify](https://npm.io/package/json-beautify.md) ^1.0.1
- [vuex-electron](https://npm.io/package/vuex-electron.md) ^1.0.0
- [ant-design-vue](https://npm.io/package/ant-design-vue.md) ^1.3.4
- [json-beautifully](https://npm.io/package/json-beautifully.md) ^1.0.3
- [babel-plugin-import](https://npm.io/package/babel-plugin-import.md) ^1.11.0

## Alternatives

- [pagerjs](https://npm.io/package/pagerjs.md) — 60 weekly downloads
- [whistle.savefor-mock](https://npm.io/package/whistle.savefor-mock.md) — 4 weekly downloads
- [facebook-ads-library-api](https://npm.io/package/facebook-ads-library-api.md) — 0 weekly downloads
- [@comp-markdown/wireframe](https://npm.io/package/@comp-markdown/wireframe.md) — 0 weekly downloads
- [generador-datos-mx](https://npm.io/package/generador-datos-mx.md) — 0 weekly downloads

## Recent versions

- 0.0.6 (latest) — 2019-02-18
- 0.0.5 — 2019-02-18
- 0.0.4 — 2019-02-18
- 0.0.3 — 2019-02-18
- 0.0.2 — 2019-02-18
- 0.0.1 — 2019-02-18

## README

# simple_mocker
## 1.前言 
>最近在总结自己的知识结构所以需要编写一系列的项目来检查，这个过程中我发现mock数据的编写是个耗时耗力而且重复的工作，强迫症不能忍所以写了一个图形化的mocker用于管理自己的项目mock。

## 2.如何使用：
本项目仅提供源码，最终执行程序需要执行
- npm i
- npm run build:win32进行编译后在/build/mocker-win32-x64中获取
- 当然你可能只想看看效果那么执行：npm run dev

## 3.创建mock步骤描述
在项目中我基本将使用方式用tip的形式进行了描述，但是为了清晰我还是在这里总结一下：
1. 建立项目：由于mock数据是隶属于某个项目下的，所以你必须先创建个项目,在首页点击增加按钮即可进入【增加项目】界面。在此填写项目名称和项目描述即可。

2. 创建mock：在列表中点击刚创建的项目名称或者右侧的列表图标即可进入【项目mock列表】，点击【增加】按钮进入【增加项目Mock】页面，填写【路径名】【描述信息】以及【mock内容】即可增加一条新mock，注意：路径名即是你的访问地址，比如：你的项目名为"demo",路径为"examplePath",那么最终你的mock地址为"http://127.0.0.1:5001/mocks/demo/examplePath"(注意：路径一个字符不要带/，"/examplePath/xxx"是错误的，"examplePath/xxx"是正确的写法),

3. 输入地址测试吧：比如上面的例子你就可以在浏览器中输入"http://127.0.0.1:5001/mocks/demo/examplePath"测试数据，由于使用了静态服务器进行模拟所以直接在浏览器上输入地址会出现下载框，这是正常的，换成ajax访问就可以了。


---

This project was generated with [electron-vue](https://github.com/SimulatedGREG/electron-vue) using [vue-cli](https://github.com/vuejs/vue-cli). Documentation about the original structure can be found [here](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html).

---
_Source: https://npm.io/package/simple_mocker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
