Skip to content

Commit 97200a8

Browse files
committed
chore: move files to proper directory
1 parent 82f189f commit 97200a8

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[![Go 版本](https://img.shields.io/badge/Go-1.22+-00ADD8?logo=go)](https://go.dev/)
1010
[![Wails](https://img.shields.io/badge/Wails-v2-blue)](https://wails.io/)
1111

12-
[English](README_EN.md) | [简体中文](README.md)
12+
[English](docs/README_EN.md) | [简体中文](README.md)
1313

1414
</div>
1515

@@ -20,6 +20,7 @@
2020
- **实时统计**:请求数、错误数、Token 用量监控
2121
- **WebDAV 同步**:多设备间同步配置和数据
2222
- **跨平台**:Windows、macOS、Linux
23+
- **[Docker](docs/README_DOCKER.md)**:纯后端 HTTP 服务,并提供容器化运行
2324

2425
<table>
2526
<tr>

Dockerfile renamed to app/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ RUN apk add --no-cache gcc musl-dev sqlite-dev
77
WORKDIR /app
88

99
# Copy module definition first for caching
10-
COPY app/go.mod ./
10+
COPY go.mod ./
1111

1212
# Download dependencies (go.sum will be generated after tidy)
1313
RUN go mod download
1414

1515
# Copy source code
16-
COPY app/ ./
16+
COPY . ./
1717

1818
# Ensure module graph is complete (generates go.sum)
1919
RUN go mod tidy
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
- 若存储中无任何 endpoint,会自动写入默认示例 endpoint,避免 “no endpoints configured” 直接退出。请尽快替换为真实 API 配置。
88

99
2. 镜像与构建
10-
- [Dockerfile](Dockerfile) 仅构建后端二进制 `ccnexus-server`,移除前端构建。暴露端口仅 `3000`(HTTP API)。
10+
- [Dockerfile](../app/Dockerfile) 仅构建后端二进制 `ccnexus-server`,移除前端构建。暴露端口仅 `3000`(HTTP API)。
1111
- 构建阶段执行 `go mod tidy` 以生成 `go.sum`,并启用 CGO 支持 SQLite。
1212

1313
3. 运行与编排
14-
- [docker-compose.yml](docker-compose.yml) 仅映射 API 端口(示例 `3021:3000`),挂载数据卷 `/data`,健康检查指向 `/health`。
14+
- [docker-compose.yml](../app/docker-compose.yml) 仅映射 API 端口(示例 `3021:3000`),挂载数据卷 `/data`,健康检查指向 `/health`。
1515
- 默认环境:`CCNEXUS_DATA_DIR=/data`,`CCNEXUS_DB_PATH=/data/ccnexus.db`,`CCNEXUS_PORT=3000`。
1616

1717
4. 使用快速指引

README_EN.md renamed to docs/README_EN.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<div align="center">
22

33
<p align="center">
4-
<img src="docs/images/ccNexus.svg" alt="Claude Code & Codex CLI 智能端点轮换代理" width="720" />
4+
<img src="images/ccNexus.svg" alt="Claude Code & Codex CLI 智能端点轮换代理" width="720" />
55
</p>
66

77
[![Build Status](https://github.com/lich0821/ccNexus/workflows/Build%20and%20Release/badge.svg)](https://github.com/lich0821/ccNexus/actions)
88
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
99
[![Go Version](https://img.shields.io/badge/Go-1.22+-00ADD8?logo=go)](https://go.dev/)
1010
[![Wails](https://img.shields.io/badge/Wails-v2-blue)](https://wails.io/)
1111

12-
[English](README_EN.md) | [简体中文](README.md)
12+
[English](README_EN.md) | [简体中文](../README.md)
1313

1414
</div>
1515

@@ -23,8 +23,8 @@
2323

2424
<table>
2525
<tr>
26-
<td align="center"><img src="docs/images/EN-Light.png" alt="Light Theme" width="400"></td>
27-
<td align="center"><img src="docs/images/EN-Dark.png" alt="Dark Theme" width="400"></td>
26+
<td align="center"><img src="images/EN-Light.png" alt="Light Theme" width="400"></td>
27+
<td align="center"><img src="images/EN-Dark.png" alt="Dark Theme" width="400"></td>
2828
</tr>
2929
</table>
3030

@@ -79,9 +79,9 @@ wire_api = "responses" # or "chat"
7979

8080
<table>
8181
<tr>
82-
<td align="center"><img src="app/frontend/public/chat.jpg" alt="WeChat Group" width="200"></td>
83-
<td align="center"><img src="app/frontend/public/WeChat.jpg" alt="WeChat Official Account" width="200"></td>
84-
<td align="center"><img src="app/frontend/public//ME.png" alt="Personal WeChat" width="200"></td>
82+
<td align="center"><img src="../app/frontend/public/chat.jpg" alt="WeChat Group" width="200"></td>
83+
<td align="center"><img src="../app/frontend/public/WeChat.jpg" alt="WeChat Official Account" width="200"></td>
84+
<td align="center"><img src="../app/frontend/public//ME.png" alt="Personal WeChat" width="200"></td>
8585
</tr>
8686
<tr>
8787
<td align="center">Join group for feedback</td>
@@ -92,9 +92,9 @@ wire_api = "responses" # or "chat"
9292

9393
## Documentation
9494

95-
- [Configuration Guide](docs/configuration_en.md)
96-
- [Development Guide](docs/development_en.md)
97-
- [FAQ](docs/FAQ_en.md)
95+
- [Configuration Guide](configuration_en.md)
96+
- [Development Guide](development_en.md)
97+
- [FAQ](FAQ_en.md)
9898

9999
## License
100100

0 commit comments

Comments
 (0)