Apache Incubator Answer 本地开发部署

简介

一款适合任何团队的问答平台软件。

Apache Incubator Answer是一个开源项目,它是一个用于构建和部署问答系统的框架。该项目是Apache软件基金会的孵化器项目,提供一个灵活、可扩展和高效的解决方案,帮助开发者构建自己的问答系统。无论是社区论坛、帮助中心还是知识管理平台,你可以永远信赖 Answer。

在这里插入图片描述

Github

文档

插件

部署 Answer

开发环境

  • Golang >= 1.18
  • Node >= 18.18.2
  • React >= 18.2.0
  • Bootstrap >= 5.3.2

编译项目

# 克隆源码
git clone https://github.com/apache/incubator-answer.git

cd incubator-answer
# 安装项目依赖
go mod tidy
# 安装 pnpm 最新版本
npm install -g pnpm
# 编译打包
make all

初始化项目

cd incubator-answer
# 运行初始化项目
INSTALL_PORT=8000 answer init -C ./data/

在这里插入图片描述

注意:选择 SQLite 数据库,data/answer.db 文件路径要填相对路径

  • 初始化完成,会在项目目录下生成 data 目录

在这里插入图片描述

运行项目

修改服务端口号为 8000

  • data/conf/config.yaml
debug: false
server:
  http:
    addr: 0.0.0.0:8000
data:
  database:
    driver: sqlite3
    connection: data/answer.db
  cache:
    file_path: data/cache/cache.db
i18n:
  bundle_dir: data/i18n
service_config:
  upload_path: data/uploads
swaggerui:
  show: true
  protocol: http
  host: 127.0.0.1
  address: :8000
  • 运行项目
cd incubator-answer
answer run -C ./data/

相关推荐

  1. 基于llama.cpp学习开源LLM本地部署

    2024-04-11 10:14:06       58 阅读
  2. StarRocks本地部署

    2024-04-11 10:14:06       61 阅读
  3. 本地部署 SalesGPT

    2024-04-11 10:14:06       41 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-11 10:14:06       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-11 10:14:06       106 阅读
  3. 在Django里面运行非项目文件

    2024-04-11 10:14:06       87 阅读
  4. Python语言-面向对象

    2024-04-11 10:14:06       96 阅读

热门阅读

  1. Python 中全局变量缓存的多线程问题及优化策略

    2024-04-11 10:14:06       43 阅读
  2. jQuery笔记 02

    2024-04-11 10:14:06       36 阅读
  3. Anthropic Claude 3 加入亚马逊云科技 AI“全家桶”

    2024-04-11 10:14:06       39 阅读
  4. Mysql 事物阻塞

    2024-04-11 10:14:06       43 阅读
  5. PHP 图片裁剪类封装

    2024-04-11 10:14:06       33 阅读
  6. 2192. 有向无环图中一个节点的所有祖先

    2024-04-11 10:14:06       39 阅读