AGEIPort 技术文档
【免费下载链接】AGEIPort 项目地址: https://gitcode.com/gh_mirrors/ag/AGEIPort
1. 安装指南
1.1 环境要求
- Java 8 或更高版本
- Maven 3.x
- 数据库(如MySQL、PostgreSQL等)
1.2 下载项目
git clone https://github.com/alibaba/AGEIPort.git
cd AGEIPort
1.3 构建项目
mvn clean install
1.4 配置数据库
在 ageiport-task 模块中,配置数据库连接信息。编辑 application.properties 文件:
spring.datasource.url=jdbc:mysql://localhost:3306/ageiport
spring.datasource.username=root
spring.datasource.password=yourpassword
2. 项目的使用说明
2.1 启动项目
在 ageiport-task 模块中,运行主类 AgeiportTaskApplication 启动任务处理模块。
2.2 创建任务
使用 ageiport-processor 模块提供的 HTTP API 创建任务实例。例如:
curl -X POST http://localhost:8080/api/task -H "Content-Type: application/json" -d '{"taskName": "exampleTask", "data": {"name": "tom"}}'
2.3 查询任务进度
使用 ageiport-processor 模块提供的 HTTP API 查询任务进度。例如:
curl http://localhost:8080/api/task/progress/{taskId}
3. 项目API使用文档
3.1 创建任务
- URL:
/api/task - Method:
POST - Request Body:
{ "taskName": "exampleTask", "data": { "name": "tom" } } - Response:
{ "taskId": "12345", "status": "CREATED" }
3.2 查询任务进度
- URL:
/api/task/progress/{taskId} - Method:
GET - Response:
{ "taskId": "12345", "status": "RUNNING", "progress": 50 }
4. 项目安装方式
4.1 本地安装
- 克隆项目代码
- 构建项目
- 配置数据库
- 启动项目
4.2 生产环境部署
参考 docs/zh/生产环境部署.md 文档进行生产环境的部署配置。
通过以上步骤,您可以顺利安装、使用和部署 AGEIPort 项目。如有任何问题,请参考项目文档或联系我们。
【免费下载链接】AGEIPort 项目地址: https://gitcode.com/gh_mirrors/ag/AGEIPort
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考



