49 lines
573 B
Markdown
49 lines
573 B
Markdown
# 前端应用 (Frontend)
|
|
|
|
币安自动交易系统前端界面
|
|
|
|
## 技术栈
|
|
|
|
- React 18
|
|
- Vite
|
|
- React Router
|
|
- Recharts (图表)
|
|
- Axios (HTTP请求)
|
|
|
|
## 安装
|
|
|
|
```bash
|
|
cd frontend
|
|
npm install
|
|
```
|
|
|
|
## 开发
|
|
|
|
```bash
|
|
npm run dev
|
|
```
|
|
|
|
访问 http://localhost:3000
|
|
|
|
## 构建
|
|
|
|
```bash
|
|
npm run build
|
|
```
|
|
|
|
构建产物在 `dist/` 目录
|
|
|
|
## 环境变量
|
|
|
|
创建 `.env` 文件:
|
|
|
|
```
|
|
VITE_API_URL=http://localhost:8000
|
|
```
|
|
|
|
## 功能
|
|
|
|
- 配置管理:可视化配置交易参数
|
|
- 交易记录:查看历史交易和统计
|
|
- 仪表板:实时查看账户和持仓信息
|