You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by li...@apache.org on 2023/11/29 08:21:24 UTC
(incubator-answer) 15/17: Improve README:
This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch feat/1.2.1/dashboard
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit ea74fd4acb6a0f3ec4ffcaa01153111685dc6e03
Author: Charles Shu <sh...@vip.qq.com>
AuthorDate: Fri Nov 17 17:05:16 2023 +0800
Improve README:
1. README_CN.md
* `Building from Source` Translate into Chinese version
* Add Chinese version `Running from source`
2. README.md
* Add `Running from source`
---
README.md | 22 ++++++++++++++++++++++
README_CN.md | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 57 insertions(+)
diff --git a/README.md b/README.md
index 7cda1b5b..399ef7f4 100644
--- a/README.md
+++ b/README.md
@@ -49,6 +49,28 @@ $ make ui
$ make build
```
+## Running from source
+
+### Build UI
+
+```bash
+make ui
+```
+
+### Initialization and Installation
+
+```bash
+INSTALL_PORT=9080 go run cmd/answer/main.go --data-path=/data init
+```
+
+For more information, see [Installation](https://answer.apache.org/docs/installation)
+
+### Local run
+
+```bash
+go run cmd/answer/main.go --data-path=/data run
+```
+
## Contributing
Contributions are always welcome!
diff --git a/README_CN.md b/README_CN.md
index 9c9e9a69..a1631c54 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -28,6 +28,41 @@ docker run -d -p 9080:80 -v answer-data:/data --name answer answerdev/answer:lat
其他安装配置细节请参考 [Installation](https://answer.apache.org/docs/installation)
+## 从源码构建
+
+### 环境要求
+- Golang >= 1.18
+- Node.js >= 16.17
+- pnpm >= 8
+
+### 构建
+```bash
+$ make ui
+$ make build
+```
+
+## 从源码运行
+
+### 前端构建
+
+```bash
+make ui
+```
+
+### 系统初始化和安装
+
+```bash
+INSTALL_PORT=9080 go run cmd/answer/main.go --data-path=/data init
+```
+
+其他安装配置细节请参考 [Installation](https://answer.apache.org/docs/installation)
+
+### 本地运行
+
+```bash
+go run cmd/answer/main.go --data-path=/data run
+```
+
## 贡献
我们随时欢迎你的贡献!