json-server is a Node module that runs an Express server, allowing you to specify a JSON file as a data source and quickly set up a local web server.
Website: https://github.com/typicode/json-server
After downloading and installing json-server, run 'json-server --watch xxx.json' in Node.
json-server是一个Node模块,运行Express服务器,你可以指定一个json文件作为数据源,快速搭建一个本地的web服务器。
网址:https://github.com/typicode/json-server
下载安装好json-server之后,node下运行 json-server --watch xxx.json 。