Code Monkey home page Code Monkey logo

hospital-service's Introduction

简介

一个简单的医院预约挂号管理系统。包括 小程序、web管理系统、服务端。

本项目基于轻量级脚手架,学习本项目前, 可先查看原项目相关文档。

如对你有所帮助,麻烦请 starwatchfork,一键三连支持一下!

主要技术

  • Spring boot + Mybatis : 实现基于 RESTful 的前后端分离架构。
  • Spring security + JWT : 实现基于角色的动态权限管理。
  • Mybatis generator : 逆向生成相关实体类与配置文件。并且添加了相关 Swagger 注释。
  • Knife4j : 基于 Swagger + bootstrap 的 API 文档工具。
  • 阿里云短信服务 : 实现短信发送验证码功能
  • 七牛云文件存储服务: 实现图片存储
  • Lombok : 减少了冗余代码。
  • Redis :实现二级缓存。

软件界面

小程序

小程序主要界面1 小程序主要界面2 小程序主要界面3

管理系统

管理系统主要界面1 管理系统主要界面2 管理系统主要界面3

部署步骤

  1. 运行 /src/main/resource 文件夹下(mysql数据库脚本) hospital.sql 创建数据库 hospital

  2. 修改 database.properties中数据库相关配置

jdbc.driver=com.mysql.cj.jdbc.Driver
jdbc.url=jdbc:mysql://数据库url:端口/hospital
jdbc.username=数据库用户名
jdbc.password=数据库用户密码
  1. 修改 application.yml中数据库相关配置
spring:
  datasource:
    url: jdbc:mysql://数据库url:端口/hospital?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=UTC
    username: 数据库用户名
    password: 用户密码
  1. 配置 redis和 阿里云短信服务

修改 host 和 password

redis:
    # Redis服务器地址
    host: localhost
    # Redis数据库索引(默认为0)
    database: 0
    # Redis服务器连接端口
    port: 6379
    # Redis密码
    password: password

阿里云短信服务

修改 accessKeyId,accessSecret,signNam,loginTemplate

# 阿里云短信服务配置
aliSms:
  # 阿里云短信服务 key
  accessKeyId: ""
  # 阿里云短信服务 secret
  accessSecret: ""
  # 短信抬头
  signName: ""
  # 注册短信验证码模板
  loginTemplate: "SMS_"
  regionId: "cn-hangzhou"
  domain: "dysmsapi.aliyuncs.com"
  version: "2017-05-25"
  1. 配置七牛云文件存储
# 七牛云文件存储
qiniu:
  accessKey: 
  secretKey: 
  bucket: 存储空间名称
  # 访问域名前缀  
  url: http://xxx.bkt.clouddn.com/
  1. 运行 HospitalApplication.java, 启动项目

  2. 访问 API文档,运行后,范围 http://localhost:8080/hospital/doc.html ,输入application.yml配置的账号密码即可

默认账号、密码为hospital

## 开启 Swagger的 Basic认证功能,默认是false
swagger:
  # 是否关闭 swagger接口文档访问
  #  production: true
  basic:
    # 开启简单用户验证
    enable: true
    # 用户名
    username: hospital
    # 用户密码
    password: hospital
  1. 系统账号,这里提供俩个账号。
// 后台管理系统账号
账号:admin
密码:admin

// API接口测试账号
账号:test
密码:test

反馈

如有问题欢迎提交Issue,遇到问题可以通过我的博客联系我。

因大家询问是否有可以讨论的地方。 我建了个群,如果有需要可加Q群:866724245

hospital-service's People

Contributors

yujian95 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.