# Dental Admin node **Repository Path**: billxxxx/dental-admin-node ## Basic Information - **Project Name**: Dental Admin node - **Description**: 基于 Node.js koa2 的 牙科诊所管理系统 API - **Primary Language**: Unknown - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-05-06 - **Last Updated**: 2023-05-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Dental Admin API
> **Dental Admin API 牙科诊所管理系统 API** > > 基于 Node.js koa2 的 牙科诊所管理系统 API | Dental Admin API based on koa2 > > 同时使用了:ORM sequelize,路由 koa-router,认证中间件 koa-passport, 日志模块 log4js, 关系型数据库 MySQL... ## 简介 一个平平无奇的 web 后台管理系统的接口,提供 牙科诊所管理系统 的接口。 前后端分离。 密码进行简单加密(MD5 + uuid)。 基于 Token(JWT) 实现登录注册和权限认证。 包含以下模块: 用户模块、公告模块、科室模块、药品模块、病历模块、收费统计模块、收入统计模块、门诊量统计模块、问题反馈模块等。 更多接口有待后续开发。 提供接口文档,文档使用 [Apifox](https://www.apifox.cn/) 生成。 为方便使用,接口全部使用 GET 或 POST > **接口文档指路:** [接口文档在线分享](https://www.apifox.cn/apidoc/shared-6ec12252-6de6-4404-bdd7-a087d9e13d46) 前端在我的另一个仓库:dental-admin-web > **前端指路:** [dental-admin-web](https://gitee.com/houzhilong98/dental-admin-web.git) ## 快速启动 首先确保 [Node.js](https://nodejs.org/en/) 和 [MySQL](https://www.mysql.com/) 已经安装且能正常运行。 作为参考,我的 Node.js 版本是`16.14.0`,MySQL 版本是`8.0.22`,其他版本请自行测试。 ```shell # 克隆项目 git clone https://gitee.com/houzhilong98/dental-admin-node.git # 安装依赖 npm install # 修改MySQL配置 # 修改根目录下config文件夹中的 mysql_config.js 和 mysql_sequelize.js 中的配置 # 将user、password等修改成你自己MySQL中的user、password等 # 为方便使用、降低使用门槛才将配置信息保存在项目根目录,请注意保护好自己的配置信息,采用其他方式保管 # 启动服务 (默认为http://localhost:3000) npm run start / nodemon ``` ## 工程化 - Git Hook 工具:[husky](https://typicode.github.io/husky/#/) + [lint-staged](https://github.com/okonet/lint-staged) - 代码规范: [Prettier](https://prettier.io/) + [ESLint](https://eslint.org/) - 提交规范:[Commitizen](http://commitizen.github.io/cz-cli/) + [Commitlint](https://commitlint.js.org/#/)