Files
ai-chat-app-x/README.md

56 lines
1006 B
Markdown
Raw Permalink 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.
# AI对话助手移动端应用
基于 Capacitor 的 AI 对话助手,可打包为 Android/iOS 应用。
## 功能
- 💬 AI 对话(智谱 GLM-4.5-Air
- 📱 移动端优化界面
- 💾 本地对话历史
- 🚀 一键打包 APK/IPA
## 开发
```bash
# 安装依赖
npm install
# 启动本地服务器
npm run dev
# 访问 http://localhost:19019
```
## 打包移动端
```bash
# 添加平台
npx cap add android
npx cap add ios
# 同步代码
npm run build:android
npm run build:ios
# 打开原生项目
npm run open:android # 需要 Android Studio
npm run open:ios # 需要 Xcode (macOS)
```
## 配置
- 端口: 19019
- 模型: GLM-4.5-Air
- API: 智谱开放平台
## 目录结构
```
www/ # 前端代码
├── index.html # 主页面
├── app.js # 应用逻辑
├── style.css # 样式
└── manifest.json # PWA 配置
android/ # Android 项目(自动生成)
ios/ # iOS 项目(自动生成)
```