|
|
hace 2 meses | |
|---|---|---|
| account | hace 3 meses | |
| common | hace 3 meses | |
| common-auth | hace 4 meses | |
| content | hace 3 meses | |
| data | hace 4 meses | |
| eureka | hace 4 meses | |
| file | hace 2 meses | |
| gateway | hace 3 meses | |
| message | hace 3 meses | |
| oauth2 | hace 3 meses | |
| oss | hace 4 meses | |
| sb | hace 3 meses | |
| search | hace 2 meses | |
| user | hace 3 meses | |
| zzz | hace 4 meses | |
| .gitignore | hace 5 meses | |
| README.md | hace 4 meses | |
| pom.xml | hace 3 meses |
微服务实践, 本项目实现了一个类似 bilibili 的 VOD 系统后端
客户端包括 Web 应用和 Android 应用
tnb 项目模块:
cd ~/Downloads
git clone https://git.reghao.cn/reghao/tnb.git
cd ~/Downloads/tnb/zzz
bash db_init.sh
执行 db_init.sh 会自动创建 tnb 项目需要的数据库并初始化数据库表
需要自行指定 db_init.sh 脚本中的 host, username, password 等变量值
cd ~/Downloads/tnb/zzz
bash build_jar.sh
执行 db_init.sh 会自动构建并运行 tnb 项目各应用 jar 包
build_jar.sh 脚本中的 proj_dir 变量默认是 ~/Downloads/tnb
mvn 构建默认使用 dev 环境, 所以需要修改每个应用 resources/application-dev.yml 配置文件中的第三方服务配置
默认运行的是 jar 包, 也可构建并运行 docker 镜像, 详见 build_jar.sh 脚本的 build_image 和 exec_image 函数
cd ~/Downloads/tnb/zzz
bash shutdown.sh
执行 shutdown.sh 会结束 tnb 项目中的各个应用
本项目模块太多, 构建部署都太过繁琐, 推荐使用 bnt 项目提供的 devops 系统来自动构建部署应用.