JessieExcel/README.md
2026-03-25 01:54:12 +08:00

45 lines
844 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 订单跟进系统Vue3 + Express
包含:登录/注册、按角色权限控制、订单 CRUD、订单进度时间线、仪表盘统计ECharts
## 启动
1. 安装依赖
```bash
npm install
```
2. 启动前后端(前端 Vite + 后端 Express
```bash
npm run dev
```
- 前端默认:`http://localhost:5173`
- 后端默认:`http://localhost:3001`
- 前端通过 `vite.config.ts``/api/*` 代理到后端。
## 示例账号
- `sales / sales123`
- `purchase / purchase123`
- `manager / manager123`
- `admin / admin123`
## 数据存储
后端使用本地 JSON 文件持久化(自动初始化种子数据):`api/data/db.json`。
## 环境变量(可选)
- `JWT_SECRET`JWT 签名密钥(未设置时使用开发默认值)。
## 常用命令
```bash
npm run check
npm run lint
npm run build
```