【文件属性】:
文件名称:json-server:typecodejson-server的工作副本
文件大小:12KB
文件格式:ZIP
更新时间:2021-04-29 13:02:47
JavaScript
JSON服务器
在不到30秒的时间内(严重)获得具有零编码的完整伪造的REST API
用<3创建,供需要快速后端进行原型制作和模拟的前端开发人员使用。
另请参阅 ,这是开发人员的简单流程管理器。
例子
创建一个db.json文件
{
" posts " : [
{ " id " : 1 , " title " : " json-server " , " author " : " typicode " }
],
" comments " : [
{ " id " : 1 , " body " : " some comment " , " postId " : 1 }
],
" profile " : { " name " : " typicode " }
}
启动JSON服务器
$ json-server --watch db.json
现在,如
【文件预览】:
json-server-master
----README2.md(2KB)
----public()
--------index.html(150B)
----people.js(1KB)
----faker.js(15KB)
----LICENSE.md(1KB)
----README.md(6KB)
----.gitignore(784B)
----index.js(55B)
----package.json(402B)