# file-store-server **Repository Path**: d7c/file-store-server ## Basic Information - **Project Name**: file-store-server - **Description**: 使用 JSON 文件存储数据的 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-09-16 - **Last Updated**: 2022-09-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # file-store-server ## 介绍 file-store-server 是一个使用 JSON 文件存储数据的 API 服务。 ## 软件架构 ### file-store file-store 是一个使用 JSON 文件存储和获取数据,[Gitee 地址](https://gitee.com/d7c/file-store)。 ### nodemon nodemon 是一个基于 node 开发的监视源代码中任何修改,并自动重启服务的实用工具。[nodemon 官网](https://nodemon.io/),[GitHub 地址](https://github.com/remy/nodemon/)。 ### express Express 是一个基于 Node.js 平台开发的 Web 框架,[Express 官网](https://www.expressjs.com.cn/)。 ## 安装教程 ### 1. 安装开发依赖模块 ``` 1、运行跨平台设置和使用环境变量的脚本 npm install --save-dev cross-env 2、代码修改自动重启服务 npm install --save-dev nodemon ``` ### 2. 安装项目依赖模块 ``` 1、使用 JSON 文件存储和获取数据 npm install git+https://gitee.com/d7c/file-store.git#master 2、生成唯一主键 npm install --save uuid 3、命令行参数解析 npm install --save minimist 4、Web 开发框架 npm install --save express 5、express 中间件,https://www.expressjs.com.cn/resources/middleware.html npm install --save body-parser ``` ## 使用说明 ### 1. 克隆并安装项目,在项目根目录下执行 ``` npm install ``` ### 2. 启动服务命令 ``` npm run start/npm run serve/npm run server ``` ### 3. 开发环境命令 ``` 1、初始化测试用户命令 npm run test-init-user 2、启动命令 npm run dev/npm run test ``` ## 捐助打赏 如果您觉得我们的开源软件对你有所帮助,请扫下方二维码打赏我们一杯咖啡。 ![微信收款码](https://images.gitee.com/uploads/images/2021/0222/174352_b22739f5_1070311.jpeg "微信收款码.jpg") ![微信赞赏码](https://images.gitee.com/uploads/images/2021/0222/174521_67e18b39_1070311.jpeg "微信赞赏码.jpg") ![支付宝收款码](https://images.gitee.com/uploads/images/2021/0222/174540_94a9ac41_1070311.jpeg "支付宝收款码.jpg") ## 参与贡献 1. Fork 本仓库 2. 新建 file-store-server_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/)