Files
memora/README.md

54 lines
877 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.
# Memora
一个背单词应用Web + Go API + 记忆引擎)。
## 目录
- `memora-web`前端Vue3 + Vite + Element Plus
- `memora-api`后端Go + Gin + GORM + MySQL
- `memora-engine`:记忆引擎(后续可抽成独立服务/库)
## 快速启动(推荐 Docker
> 由于当前机器可能未安装 Go本项目提供 Docker 方式启动。
1. 进入项目根目录:
```bash
cd /home/wsy182/Documents/code/memora
```
2. 复制并编辑后端配置:
```bash
cp memora-api/config.yaml memora-api/config.local.yaml
```
3. 启动:
```bash
docker compose up -d --build
```
- API: http://localhost:8080
- Web: http://localhost:3000
## 本地启动(不使用 Docker
### 启动 API
```bash
cd memora-api
# 确保已安装 Go 1.21+
go mod tidy
go run main.go
```
### 启动 Web
```bash
cd memora-web
npm install
npm run dev
```