Apache Incubator Answer 是一个开源的问答社区平台框架,支持积分、提问、回答和标签等功能,由 Apache 软件基金会孵化,适用于社区论坛、帮助中心和知识管理平台等。
• 基于 Golang 和 Node.js 技术栈开发
• 前端使用 React 和 Bootstrap
• 支持 SQLite 数据库
• 提供灵活的插件系统
• 包含用户声望值激励体系
• Golang 1.18 或更高版本
• Node.js 18.18.2 或更高版本
• React 18.2.0
• Bootstrap 5.3.2
1、克隆源代码仓库:
git clone https://github.com/apache/incubator-answer.git
2、进入项目目录并安装依赖:
cd incubator-answer
go mod tidy
npm install -g pnpm
3、编译项目:
make all
4、初始化项目:
INSTALL_PORT=8000 answer init -C ./data/
初始化时选择 SQLite 数据库,data/answer.db 文件路径填写相对路径。
5、修改配置文件 data/conf/config.yaml,设置服务端口为8000:
debug: false
server:
http:
addr: 0.0.0.0:8000
data:
database:
driver: sqlite3
connection: data/answer.db
6、运行项目:
answer run -C ./data/
Answer 最初由 SegmentFault 思否团队开发,2022年10月24日正式开源,2023年10月通过投票进入Apache孵化器,获得全票支持。
项目在GitHub发布后迅速登上趋势榜,位列总榜和Go语言榜第一。
• 问题与回答管理
• 标签内容分类
• 用户声望值系统
• 多语言支持
• 移动端适配
• 插件扩展机制
• 官方网站:http://answer.apache.org/
• 代码仓库:https://github.com/apache/incubator-answer
• 技术文档:https://answer.apache.org/docs
• 用户社区:https://meta.answer.dev/