微服务与云原生开发练习项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
trafalgarlwa ad2cc11286 chore: remove edison service (#13) 1 week ago
account-api feat(account-svc, email-svc): 支持创建账号发送激活邮件 (#5) 4 weeks ago
account-svc chore: remove edison service (#13) 1 week ago
common-lib feat(account-svc, email-svc, web): add create account page (#11) 2 weeks ago
email-api feat(account-svc, email-svc, web): add create account page (#11) 2 weeks ago
email-svc chore: remove edison service (#13) 1 week ago
k8s update k8s manifest.yaml for development environment and update publish.sh script [SKIP CI] 3 weeks ago
planck feat(account-svc, email-svc, web): add create account page (#11) 2 weeks ago
plugins chore: add docker plugin [SKIP CI] (#8) 3 weeks ago
scripts feat(account-svc, email-svc, web): add create account page (#11) 2 weeks ago
web feat(account-svc, email-svc, web): add create account page (#11) 2 weeks ago
.drone.yml feat(account-svc, email-svc, web): add create account page (#11) 2 weeks ago
.evn.example feat(account-svc, email-svc): 支持创建账号发送激活邮件 (#5) 4 weeks ago
.gitignore update k8s manifest.yaml for development environment and update publish.sh script [SKIP CI] 3 weeks ago
LICENSE init project 4 months ago
README.md chore: update Readme.md and docker-compose.yml (#12) 2 weeks ago
docker-compose.yml chore: update Readme.md and docker-compose.yml (#12) 2 weeks ago
pom.xml chore: remove edison service (#13) 1 week ago

README.md

Hosppy 练习版

医院挂号系统,微服务和云原生架构,基于 Spring Boot 和 Kubernetes 技术栈

项目目的

微服务和云原生架构是目前互联网行业的技术热点,相关资料文档很多,但是缺乏系统的学习,为此,通过参考开源项目掌握云原生和微服务开发实践,并且可以一键部署到 Kubernetes 容器云环境。

快速开始

环境变量

您可以通过环境变量配置 Hosppy 的一些设置:

(默认值以粗体显示)

  • SPRING_PROFILES_ACTIVEtest:应用程序运行模式。"dev","test","prod"
  • SERVER_PORT80:应用程序运行时开放端口
  • SIGNING_SECRET:"":用户密码加密密钥
  • WEB_DOMAIN:"":网站域名地址
  • ACCOUNT_SERVICE_ENDPOINThttp://account-service:账号服务访问端点
  • EMAIL_SERVICE_ENDPOINThttp://email-service:邮件服务访问端点
  • ACCOUNT_DATASOURCE_URL:"":账号服务数据库地址
  • ACCOUNT_DATASOURCE_USERNAMEroot:账号服务数据库用户名
  • ACCOUNT_DATASOURCE_PASSWORDroot:账号服务数据库密码
  • ALIYUN_ACCESS_KEY:"":阿里云账号 ID
  • ALIYUN_ACCESS_SECRET:"":阿里云账号密钥
  • MAIL_FROM:"":邮件地址,在阿里云配置
  • MAIL_FROM_NAME:"":邮件发件名,在阿里云配置

在开发环境中运行本应用

$ mvn clean package
$ docker-compose up --build

项目技术栈

  • Spring Boot
  • Spring Data JPA
  • Spring MVC + Thymeleaf
  • MySQL
  • Docker Compose
  • Kubernetes

注意

本项目不是一个完整的项目,由于没有实现前端页面,具体的业务逻辑,以及网关鉴权等功能,所以并不能真正的使用,这只是做为我学习云原生与微服务架构开发理念的练习项目。