# json-server
**Repository Path**: d7c/json-server
## Basic Information
- **Project Name**: json-server
- **Description**: 使用 json-server 快速搭建一个 Rest 风格的 API 服务器。
- **Primary Language**: NodeJS
- **License**: AGPL-3.0
- **Default Branch**: master
- **Homepage**: http://www.d7c.top/
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-11-23
- **Last Updated**: 2022-11-23
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# json-server
## 介绍
使用 json-server 快速搭建一个 Rest 风格的 API 服务器。
## 软件架构
使用 json-server 快速搭建一个 Rest 风格的 API 服务器。
## 安装教程
### 1. 安装开发依赖模块
```
1、json-server,https://www.npmjs.com/package/json-server
npm install -g json-server
```
## 使用说明
### 1. 创建指定格式的 json 数据文件
```
{
"posts": [
{ "id": 1, "title": "json-server", "author": "typicode" }
],
"comments": [
{ "id": 1, "body": "some comment", "postId": 1 }
],
"profile": { "name": "typicode" }
}
```
### 2. 启动监控数据文件的服务
```
json-server --watch ./data/test.json
```
```
访问:http://localhost:3000
```
### 3. 帮助命令
```
json-server -h
```
## 捐助打赏
如果您觉得我们的开源软件对你有所帮助,请扫下方二维码打赏我们一杯咖啡。



## 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
## 特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)