You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
从这一节开始,我们将一步步搭建 WaLiAPI 项目的基础框架。WaLiAPI 是一个**本地 LLM API 网关桌面软件**,将各供应商 API 统一转换为 OpenAI 兼容协议,让下游 AI IDE(WaLiCode、ChatBox、NextChat 等)只需一套配置就能调用任意 AI 供应商。
17
+
18
+
## 一、本章诉求
19
+
20
+
我们需要完成 WaLiAPI 项目的基础框架搭建:
21
+
22
+
1. 初始化 Tauri + React + TypeScript 前端工程
23
+
2. 配置 Rust 后端依赖(Axum、SQLx、Reqwest、Serde 等)
24
+
3. 创建前端项目结构(pages、components、types、lib 等)
25
+
4. 创建后端项目结构(server、core、adaptor、db、security 等)
26
+
5. 让项目可以正常运行起来(`npm run tauri dev`)
27
+
28
+
## 二、环境说明
29
+
30
+
### 1.1 软件安装
31
+
32
+
-**Rust**:使用 rustup 安装 Rust 工具链
33
+
-**Node.js**:建议 20+(使用了一些新的特性)
34
+
-**VS Code**:配合 Tauri、rust-analyzer 插件开发体验最佳
35
+
-**Git**:用于拉取工程代码、管理分支
36
+
37
+
此外推荐 AI IDE 工具(任何你使用熟练的也都可以),[walicode.xiaofuge.cn](https://walicode.xiaofuge.cn/)。前端页面的代码,基本都是 AI IDE 这样的工具来完成开发即可。
0 commit comments