文档版本 / Document Version: 1.1 创建日期 / Created: 2026-03-07
本指南将帮助你快速启动和运行 AskOnce 项目。
This guide will help you quickly start and run the AskOnce project.
- 前置要求 / Prerequisites
- 快速开始 / Quick Start
- 环境变量配置 / Environment Variables
- 使用指南 / Usage Guide
- 故障排除 / Troubleshooting
- 了解更多 / Learn More
- Node.js: >= 18.0.0
- npm: >= 9.0.0
- Python: >= 3.10 (用于 Python 后端 / for Python backend)
- Docker: 用于容器化部署 / For containerized deployment
- API Keys: 用于调用 AI 模型 / For calling AI models
# 1. 克隆仓库 / Clone repository
git clone https://github.com/linuxhsj/askonce.git
cd askonce
# 2. 安装依赖 / Install dependencies
cd frontend && npm install
cd ../backend/node && npm install
# 3. 配置环境变量 / Configure environment variables
cp .env.example .env
# 编辑 .env 文件,添加你的 API Keys / Edit .env file, add your API Keys
# 4. 启动后端 / Start backend
npm run dev
# 5. 启动前端 (新终端) / Start frontend (new terminal)
cd ../../frontend && npm run dev访问 / Visit: http://localhost:3000
# 1. 克隆仓库 / Clone repository
git clone https://github.com/linuxhsj/askonce.git
cd askonce
# 2. 配置环境变量 / Configure environment variables
cp .env.example .env
# 编辑 .env 文件,添加你的 API Keys / Edit .env file, add your API Keys
# 3. 启动所有服务 / Start all services
docker-compose up -d
# 4. 访问 / Access
# 前端 / Frontend: http://localhost:3000
# 后端 / Backend: http://localhost:8000# 1. 克隆仓库 / Clone repository
git clone https://github.com/linuxhsj/askonce.git
cd askonce
# 2. 打开 Chrome,访问 chrome://extensions/
# Open Chrome, visit chrome://extensions/
# 3. 启用"开发者模式" / Enable "Developer mode"
# 4. 点击"加载已解压的扩展程序" / Click "Load unpacked"
# 5. 选择 extension/ 目录 / Select extension/ directory创建 .env 文件 / Create .env file:
# OpenAI API (必需至少一个 / At least one required)
OPENAI_API_KEY=sk-xxx
ANTHROPIC_API_KEY=sk-ant-xxx
DEEPSEEK_API_KEY=sk-xxx
# OpenRouter (可选,用于更多模型 / Optional, for more models)
OPENROUTER_API_KEY=sk-or-xxx
# 其他 / Others
GOOGLE_API_KEY=xxx
XAI_API_KEY=xxx
# 服务配置 / Service Configuration
PORT=8000
MAX_CONCURRENT=10
DEFAULT_TIMEOUT=60000在模型选择区域,你可以 / In the model selection area, you can:
- 点击分组标题展开/折叠 / Click group header to expand/collapse
- 点击复选框选择/取消选择模型 / Click checkbox to select/deselect models
- 使用"全选"和"取消全选"按钮 / Use "Select All" and "Deselect All" buttons
在文本框中输入你的问题,支持 / Enter your question in the text box, supports:
- 多行文本 / Multi-line text
- 代码块 / Code blocks
- Markdown 格式 / Markdown format
点击"查询所有"按钮或按 Ctrl+Enter 发送。
Click "Query All" button or press Ctrl+Enter to send.
- 卡片模式 / Card Mode: 每个模型的回答独立展示 / Each model's response displayed independently
- 并排模式 / Side-by-side Mode: 多个回答并排显示 / Multiple responses displayed side by side
- 导出 / Export: 点击"导出"下载 Markdown 文件 / Click "Export" to download Markdown file
查询完成后,点击"开始分析"使用 AI 评审功能。
After query completes, click "Start Analysis" to use AI judging feature.
- 检查 API Key 是否正确配置 / Check if API Key is correctly configured
- 检查网络连接 / Check network connection
- 查看后端日志 / Check backend logs
- 确保扩展已正确加载 / Ensure extension is correctly loaded
- 检查是否启用了开发者模式 / Check if developer mode is enabled
- 查看扩展的错误日志 / Check extension error logs
- 确保使用的是支持的浏览器 / Ensure using a supported browser
- 检查是否有代理或防火墙阻止 / Check if proxy or firewall is blocking
- 架构文档 / Architecture Document - 深入了解系统架构 / Deep dive into system architecture
- 研究报告 / Research Report - 项目调研笔记 / Project research notes
- 贡献指南 / Contributing Guide - 如何贡献代码 / How to contribute code
文档版本 / Document Version: v1.1 创建日期 / Created: 2026-03-07 作者 / Author: SeekSage