Files
vox/README.md

41 lines
848 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.

# Vox (词脉)
智能单词挑战系统。
- **极速**Svelte 5 + Tailwind 4
- **智能**:错题本 + 专项练习
- **持久**SQLite 存储
```bash
npm i && npm run dev # Port: 1995
```
## Docker
### 1. 使用 Docker CLI
```bash
docker build -t vox-app .
docker run -p 1995:1995 -v $(pwd)/data.db:/app/data.db vox-app
```
### 2. 使用 Docker Compose (推荐)
```bash
# 以后台模式运行
docker-compose up -d
# 查看日志
docker-compose logs -f
```
### 3. 先编译后打包 (推荐:适用于性能较弱的服务器)
在本地预先编译,仅将结果推送到容器,可极大地减少部署时间。
```bash
# 1. 本地编译
npm install
npm run build
# 2. 使用精简版 Dockerfile 构建
docker build -t vox-fast -f Dockerfile.fast .
# 3. 运行
docker run -p 1995:1995 -v $(pwd)/data.db:/app/data.db vox-fast
```