Files
huike-front/README.md
T
weli a661e439a0 chore: initialize frontend repo with teaching terminology updates
Add the current frontend codebase with a baseline .gitignore and update piano-specific UI terms to teaching-oriented terms for the current product context.

Made-with: Cursor
2026-04-23 16:37:14 +08:00

35 lines
1.1 KiB
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/htymusic/actions/workflows/ci.yml/badge.svg)](https://github.com/alchemy-studio/htymusic/actions)
[![Release](https://github.com/alchemy-studio/htymusic/actions/workflows/release.yml/badge.svg)](https://github.com/alchemy-studio/htymusic/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`