feat 优化架构设计
This commit is contained in:
15
README.md
15
README.md
@@ -7,27 +7,20 @@
|
||||
## 配套后端代码仓库地址
|
||||
|
||||
| 介绍 | 项目名 | 项目地址 |
|
||||
|------------|:-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| ----------------- | :--------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| 🔥 分布式集群框架 | RuoYi-Vue-Plus | - [Gitee](https://gitee.com/dromara/RuoYi-Vue-Plus)<br> - [GitHub](https://github.com/dromara/RuoYi-Vue-Plus)<br> - [GitCode](https://gitcode.com/dromara/RuoYi-Vue-Plus) |
|
||||
| 🔥 微服务框架 | RuoYi-Cloud-Plus | - [Gitee](https://gitee.com/dromara/RuoYi-Cloud-Plus)<br>- [GitHub](https://github.com/dromara/RuoYi-Cloud-Plus)<br> - [GitCode](https://gitcode.com/dromara/RuoYi-Cloud-Plus) |
|
||||
|
||||
## 分支说明
|
||||
|
||||
- ts分支(稳定发布主分支 生产可用)
|
||||
- main分支(稳定发布主分支 生产可用)
|
||||
- dev分支(开发分支 开发过程中使用)
|
||||
|
||||
## 前端运行
|
||||
|
||||
```bash
|
||||
# 安装依赖
|
||||
npm install --registry=https://registry.npmmirror.com
|
||||
|
||||
# 启动服务
|
||||
npm run dev
|
||||
|
||||
# 构建生产环境
|
||||
npm run build:prod
|
||||
|
||||
# 启动命令
|
||||
./start.sh
|
||||
# 前端访问地址 http://localhost:80
|
||||
```
|
||||
|
||||
|
||||
25
start.sh
Normal file
25
start.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 启动命令 : ./start.sh
|
||||
echo "📦 正在安装依赖..."
|
||||
pnpm install
|
||||
|
||||
echo "🚀 正在启动开发服务器..."
|
||||
pnpm run dev
|
||||
|
||||
echo "⏳ 等待服务器启动..."
|
||||
sleep 5
|
||||
|
||||
echo "🌐 正在打开浏览器..."
|
||||
if command -v start &> /dev/null; then
|
||||
# Windows
|
||||
start http://localhost:80
|
||||
elif command -v xdg-open &> /dev/null; then
|
||||
# Linux
|
||||
xdg-open http://localhost:80
|
||||
elif command -v open &> /dev/null; then
|
||||
# macOS
|
||||
open http://localhost:80
|
||||
else
|
||||
echo "⚠️ 请手动打开浏览器访问: http://localhost:80"
|
||||
fi
|
||||
Reference in New Issue
Block a user