Files
language/README.md
T

46 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.
# Language Learning Tool
一个从英语背单词入门的语言学习工具。
## 目录结构
```
language/
├── backend/ Go + PostgreSQL 后台服务
├── frontend/
│ └── admin/ 管理后台(Refine + Ant Design
├── client/ 未来客户端(App / Desktop
└── README.md
```
## 当前阶段
- 类别管理:如「农场动物」「颜色」
- 单词维护:英文单词、中文释义、音标、例句等
- 管理后台:分类与单词的增删改查
## 技术栈
- 后台:Go 1.25.8 + PostgreSQL 18.3 + Docker,详见 [backend/README.md](backend/README.md)
- 管理后台:Vite + React 19 + Refine + Ant Design 5
## 开发
```bash
# 启动后端(热重载,API 在 :8080)
cd backend && make dev
# 启动管理后台(:5173,/api 自动代理到 :8080
cd frontend/admin && npm install && npm run dev
```
## Docker 部署
根目录一条命令拉起整套(PostgreSQL + 迁移 + API + 管理后台):
```bash
docker compose up -d --build
```
浏览器访问 http://localhost 即可使用管理后台。