本地部署详细指南
按照技术复杂度由低到高提供三种方案:
基础方案(开发模式)
- 环境准备:安装Node.js(≥v16)和Git
- Cloning Warehouse:
git clone https://github.com/wizd/airylark.git
- Install the dependencies:
npm install
- configure
.env
文件:必须设置TRANSLATION_API_KEY
(如Google Cloud密钥) - Start the service:
npm run dev
后访问localhost:3030
生产环境建议
- Docker Deployment:官方提供容器镜像,需同步运行主服务和MCP服务
- 传统部署: By
npm run build
生成优化版本 - Serverless方案:支持Vercel一键部署
caveat
- API配额:免费版Google翻译API每月限50万字符,企业使用需购买配额
- hardware requirement:建议部署服务器至少2核CPU/4GB内存
- Security recommendations:修改默认端口3030,配置Nginx反向代理和HTTPS加密
- Chinese Optimization:如需增强中文处理,可对接百度翻译API或微调本地模型
This answer comes from the articleAiryLark: An Open Source Tool for Intelligent Translation of Multi-format DocumentsThe