企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 本地服务器搭建 > 使用npm 服务搭建简单的服务器 > 模拟请求 > 第一步: 安装json-server ~~~ cnpm i -g json-server ~~~ 第二步:运行 ~~~ npm run json:server ~~~ 最后贡献配置文件packer.json ~~~ { "name": "jsonserver", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "json:server": "json-server --watch db.json" }, "author": "", "license": "ISC" } ~~~ 请求数据的文件 ~~~ { "result": [ { "id": 3, "title": "最后一次贷款时间,贷款次数", "thumb": "/article/dad9f80098927bee0d61313d29955f8f.jpg", "view": 0, "created_at": "2017-11-07 23:11:17" }, { "id": 5, "title": "最后一次贷款时间", "thumb": "/article/cc874257d1bf76136d30d3a84dc3da89.jpg", "view": 0, "created_at": "2017-11-08 17:19:22" } ] } ~~~