Files
huike-front/README.md
T
weli a7d09b4f1c docs update frontend ci badges
Point README CI badge to huike-front and remove obsolete release badge with no workflow.

Made-with: Cursor
2026-04-23 21:50:46 +08:00

34 lines
1014 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.
# 慧课前端
[![CI](https://github.com/alchemy-studio/huike-front/actions/workflows/ci.yml/badge.svg)](https://github.com/alchemy-studio/huike-front/actions)
# Run in local
相关设置:
1. 在hosts中添加 `127.0.0.1 local.moicen.com`
2. nginx路径配置添加:
```nginx
location /mini/api/v1/ws/ {
proxy_pass http://127.0.0.1:3001/api/v1/ws/;
proxy_set_header Host "music-room.moicen.com";
}
location /mini/api/v1/uc/ {
proxy_pass http://127.0.0.1:3000/api/v1/uc/;
proxy_set_header Host "music-room.moicen.com";
}
location /mini/api/v1/ts/ {
proxy_pass http://127.0.0.1:8080/api/v1/ts/;
proxy_set_header Host "music-room.moicen.com";
}
```
启动命令:`mode=local npm start``mode=test vite``mode=prod yarn vite`。如不指定`mode`参数,默认为`local`
`mode`参数为:
- `local`: 本地启动,指向本地的3000和30001端口
- `test`: 测试环境,指向`test-music-room.moicen.com`
- `prod`: 生产环境,指向`music-room.alchemy-studio.cn`