https://github.com/zhao5271/mock-data-example
json-server + mockjs 构建本地模拟数据
https://github.com/zhao5271/mock-data-example
json-server mock mockjs nodemon shelljs
Last synced: 13 days ago
JSON representation
json-server + mockjs 构建本地模拟数据
- Host: GitHub
- URL: https://github.com/zhao5271/mock-data-example
- Owner: zhao5271
- Created: 2022-09-09T11:49:26.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-17T12:39:40.000Z (over 3 years ago)
- Last Synced: 2026-03-19T18:27:30.702Z (3 months ago)
- Topics: json-server, mock, mockjs, nodemon, shelljs
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
npm run mock 启动项目
1.利用 mockjs 生成动态数据,到 mock 中,在db.js 中引入
2.json-server 执行 db.js 文件,模拟接口
3.nodemon 监听 mock 文件夹下 文件的变更,重新执行 json-server