This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer-website.git


The following commit(s) were added to refs/heads/main by this push:
     new b5781d707 new blog: 
2024-08-16-apache-answer-frontend-configuration-guide (#237)
b5781d707 is described below

commit b5781d707dde19ae55105394f6fd17dd2fd86a48
Author: Melody <[email protected]>
AuthorDate: Tue Aug 20 12:13:24 2024 +0800

    new blog: 2024-08-16-apache-answer-frontend-configuration-guide (#237)
    
    Co-authored-by: Zhu Xuanlyu <[email protected]>
---
 .../clone-answer.png                               | Bin 0 -> 154202 bytes
 .../copy-ssh.png                                   | Bin 0 -> 180405 bytes
 .../fork-answer.png                                | Bin 0 -> 193947 bytes
 .../index.md                                       |  94 +++++++++++++++++++
 .../install-complete.png                           | Bin 0 -> 77587 bytes
 .../node-command.png                               | Bin 0 -> 66638 bytes
 .../node-install.png                               | Bin 0 -> 133648 bytes
 .../pnpm-install.png                               | Bin 0 -> 92295 bytes
 .../pnpm-start.png                                 | Bin 0 -> 56591 bytes
 .../ssh-configuration.png                          | Bin 0 -> 82469 bytes
 .../windows-error.png                              | Bin 0 -> 126051 bytes
 .../answer-page.png                                | Bin 0 -> 86755 bytes
 .../database.png                                   | Bin 0 -> 162193 bytes
 .../database2.png                                  | Bin 0 -> 75400 bytes
 .../go-success.png                                 | Bin 0 -> 233898 bytes
 .../index.md                                       |  99 +++++++++++++++++++++
 .../install1.png                                   | Bin 0 -> 55101 bytes
 .../install2.png                                   | Bin 0 -> 37753 bytes
 .../install3.png                                   | Bin 0 -> 22586 bytes
 .../install4.png                                   | Bin 0 -> 58675 bytes
 .../install5.png                                   | Bin 0 -> 40727 bytes
 blog/authors.yml                                   |  13 +++
 .../clone-answer.png                               | Bin 0 -> 154202 bytes
 .../copy-ssh.png                                   | Bin 0 -> 180405 bytes
 .../fork-answer.png                                | Bin 0 -> 152986 bytes
 .../index.md                                       |  94 +++++++++++++++++++
 .../install-complete.png                           | Bin 0 -> 77587 bytes
 .../node-command.png                               | Bin 0 -> 66638 bytes
 .../node-install.png                               | Bin 0 -> 115819 bytes
 .../pnpm-install.png                               | Bin 0 -> 97488 bytes
 .../pnpm-start.png                                 | Bin 0 -> 56591 bytes
 .../ssh-configuration.png                          | Bin 0 -> 82469 bytes
 .../windows-error.png                              | Bin 0 -> 126051 bytes
 .../answer-page.png                                | Bin 0 -> 86755 bytes
 .../database.png                                   | Bin 0 -> 162193 bytes
 .../database2.png                                  | Bin 0 -> 75400 bytes
 .../go-success.png                                 | Bin 0 -> 233898 bytes
 .../index.md                                       |  99 +++++++++++++++++++++
 .../install1.png                                   | Bin 0 -> 55101 bytes
 .../install2.png                                   | Bin 0 -> 37753 bytes
 .../install3.png                                   | Bin 0 -> 22586 bytes
 .../install4.png                                   | Bin 0 -> 58675 bytes
 .../install5.png                                   | Bin 0 -> 40727 bytes
 .../docusaurus-plugin-content-blog/authors.yml     |  12 +++
 static/img/blog/[email protected]         | Bin 0 -> 11275 bytes
 static/img/blog/[email protected]         | Bin 0 -> 22837 bytes
 static/img/blog/[email protected]            | Bin 0 -> 12602 bytes
 static/img/blog/[email protected]            | Bin 0 -> 26740 bytes
 static/img/blog/[email protected]         | Bin 0 -> 9309 bytes
 static/img/blog/[email protected]         | Bin 0 -> 19189 bytes
 static/img/blog/[email protected]            | Bin 0 -> 10790 bytes
 static/img/blog/[email protected]            | Bin 0 -> 22987 bytes
 52 files changed, 411 insertions(+)

diff --git 
a/blog/2024-08-16-apache-answer-frontend-configuration-guide/clone-answer.png 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/clone-answer.png
new file mode 100644
index 000000000..f0239f1b8
Binary files /dev/null and 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/clone-answer.png 
differ
diff --git 
a/blog/2024-08-16-apache-answer-frontend-configuration-guide/copy-ssh.png 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/copy-ssh.png
new file mode 100644
index 000000000..c1cd07ccd
Binary files /dev/null and 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/copy-ssh.png differ
diff --git 
a/blog/2024-08-16-apache-answer-frontend-configuration-guide/fork-answer.png 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/fork-answer.png
new file mode 100644
index 000000000..492b2da61
Binary files /dev/null and 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/fork-answer.png 
differ
diff --git 
a/blog/2024-08-16-apache-answer-frontend-configuration-guide/index.md 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/index.md
new file mode 100644
index 000000000..560c3b0b4
--- /dev/null
+++ b/blog/2024-08-16-apache-answer-frontend-configuration-guide/index.md
@@ -0,0 +1,94 @@
+---
+title: "Apache Answer Frontend Configuration Guide"
+authors: [ChenJiaji, ZhuXuanlyu, Anne]
+category: Tutorials
+featured: true
+image: [email protected]
+description: "Answer Frontend Configuration Step-by-Step Guide"
+
+---
+
+Our official website provides [Developer 
Guides](https://answer.apache.org/docs/development) to help developers quickly 
set up both the frontend and backend of Apache Answer. In today's blog post, we 
will break down the steps for configuring the frontend and backend in detail.
+
+In the Answer community, we welcome and respect various [Contributing 
Methods](https://answer.apache.org/community/contributing/). Whether you're a 
developer or not, you can follow the steps outlined in the article to complete 
the Answer frontend setup.
+
+
+### 1. Download Node.js and pnpm
+
+Click [here](https://nodejs.org/en) to download Node.js, and select `Node.js 
runtime` during installation. It is recommended to install it in the default 
location.
+![node install](node-install.png)
+
+After Node.js is installed, locate the `Node.js command prompt`.
+![node command](node-command.png)
+
+Open the Node.js command prompt and enter `npm install -g pnpm`. If you see 
the following screen, it means pnpm has been successfully installed.
+![pnpm install](pnpm-install.png)
+_Note: pnpm can be installed using various methods suitable for different 
operating systems. For more details, please refer to its official website._
+
+
+
+### 2. Clone the Repository
+
+Click [here](https://github.com/apache/incubator-answer) to visit the Apache 
Answer GitHub repository.
+
+
+#### 2.1 Fork Answer Porject
+
+Log in to your GitHub account and click 'Fork' to fork the entire Answer 
project.
+![fork answer](fork-answer.png)
+
+
+#### 2.2 Install Git/Git Bash
+
+Click [here](https://git-scm.com/downloads) and choose to download Git 
according to your operating system.
+
+
+#### 2.3 Create and Configuratie SSH
+
+You can browse GitHub's documentation on [connecting to GitHub with 
SSH](https://docs.github.com/en/authentication/connecting-to-github-with-ssh). 
You may skip the section in the documentation about generating a new SSH key 
for hardware security keys.
+
+The following image shows the SSH key after configuration is complete.
+![ssh configuration](ssh-configuration.png)
+
+
+#### 2.4 Clone Answer Project
+
+In the Answer GitHub page, find the 'Code' section. Click to expand and copy 
the SSH address of the Answer repository
+![copy ssh](copy-ssh.png)
+
+Next, open `Git Bash` and enter the following command to clone the project.
+```
+git clone <Answer SSH address>
+```
+As shown in the image below, after completing this step, the project will be 
successfully cloned to your local folder.
+![clone answer](clone-answer.png)
+
+
+
+### 3. Install Dependencies and Build Local Packages
+
+We will refer to the Answer project folder as the root directory. Open the 
`command line terminal` and run the following commands, then navigate to the 
`ui` subdirectory from that directory.
+```
+cd ./ui
+pnpm install
+```
+
+**Note: For Windows users, you might encounter the following error:**
+![windows-error](windows-error.png)
+This issue is caused by system permissions. You can first enter the following 
command:
+```
+Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
+```
+This command sets the PowerShell execution policy for the current user to 
`RemoteSigned`, which means local scripts can run, while remote scripts must be 
signed.
+
+Then you can run it successfully. Once completed, it indicates that the 
installation is finished.
+![install complete](install-complete.png)
+
+
+
+### 4. Run the Frontend
+
+After configuration is complete, navigate to the `ui` folder and enter `pnpm 
start` to run Answer.
+![pnpm start](pnpm-start.png)
+
+Congratulations! You have completed the frontend configuration for Answer. If 
you have any questions, feel free to join our 
[community](https://meta.answer.dev/) and engage with our team.
\ No newline at end of file
diff --git 
a/blog/2024-08-16-apache-answer-frontend-configuration-guide/install-complete.png
 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/install-complete.png
new file mode 100644
index 000000000..0f170831c
Binary files /dev/null and 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/install-complete.png
 differ
diff --git 
a/blog/2024-08-16-apache-answer-frontend-configuration-guide/node-command.png 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/node-command.png
new file mode 100644
index 000000000..4de8fdda0
Binary files /dev/null and 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/node-command.png 
differ
diff --git 
a/blog/2024-08-16-apache-answer-frontend-configuration-guide/node-install.png 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/node-install.png
new file mode 100644
index 000000000..e487f2b04
Binary files /dev/null and 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/node-install.png 
differ
diff --git 
a/blog/2024-08-16-apache-answer-frontend-configuration-guide/pnpm-install.png 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/pnpm-install.png
new file mode 100644
index 000000000..947acf22c
Binary files /dev/null and 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/pnpm-install.png 
differ
diff --git 
a/blog/2024-08-16-apache-answer-frontend-configuration-guide/pnpm-start.png 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/pnpm-start.png
new file mode 100644
index 000000000..235ea6b18
Binary files /dev/null and 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/pnpm-start.png 
differ
diff --git 
a/blog/2024-08-16-apache-answer-frontend-configuration-guide/ssh-configuration.png
 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/ssh-configuration.png
new file mode 100644
index 000000000..09f9e1c42
Binary files /dev/null and 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/ssh-configuration.png
 differ
diff --git 
a/blog/2024-08-16-apache-answer-frontend-configuration-guide/windows-error.png 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/windows-error.png
new file mode 100644
index 000000000..07d49893e
Binary files /dev/null and 
b/blog/2024-08-16-apache-answer-frontend-configuration-guide/windows-error.png 
differ
diff --git 
a/blog/2024-08-20-apache-answer-backend-configuration-guide/answer-page.png 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/answer-page.png
new file mode 100644
index 000000000..74ec33f3b
Binary files /dev/null and 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/answer-page.png 
differ
diff --git 
a/blog/2024-08-20-apache-answer-backend-configuration-guide/database.png 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/database.png
new file mode 100644
index 000000000..2f05daf2c
Binary files /dev/null and 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/database.png differ
diff --git 
a/blog/2024-08-20-apache-answer-backend-configuration-guide/database2.png 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/database2.png
new file mode 100644
index 000000000..4a59fcd3b
Binary files /dev/null and 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/database2.png differ
diff --git 
a/blog/2024-08-20-apache-answer-backend-configuration-guide/go-success.png 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/go-success.png
new file mode 100644
index 000000000..52cdfdcce
Binary files /dev/null and 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/go-success.png 
differ
diff --git a/blog/2024-08-20-apache-answer-backend-configuration-guide/index.md 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/index.md
new file mode 100644
index 000000000..05b9d0e16
--- /dev/null
+++ b/blog/2024-08-20-apache-answer-backend-configuration-guide/index.md
@@ -0,0 +1,99 @@
+---
+title: "Apache Answer Backend Configuration Guide"
+authors: [ZhuXuanlyu, ChenJiaji, Anne]
+category: Tutorials
+featured: true
+image: [email protected]
+description: "Answer Backend Configuration Step-by-Step Guide"
+
+---
+
+In the [Apache Answer Frontend Configuration 
Guide](https://answer.apache.org/blog/2024/08/16/apache-answer-frontend-configuration-guide),
 we believe that everyone was able to follow each step to complete the frontend 
configuration. This article will provide a detailed guide on how to configure 
the backend of Apache Answer. We will go through each step, ensuring that 
everyone can get started and run the backend successfully.
+
+## Preparation
+
+1. Download Golang
+    Download and install the Go programming language from the [official 
website](https://go.dev/doc/install). Follow the default settings for 
installation.
+
+2. Clone the Answer Project
+    Ensure that you have cloned the Apache Answer project locally. If you 
haven’t done so yet, please refer to the [Apache Answer Frontend Configuration 
Guide](https://answer.apache.org/blog/2024/08/16/apache-answer-frontend-configuration-guide).
+
+
+## I. Initialize the Project
+
+Open the command line terminal in the root directory of the Answer project and 
run the following commands:
+```
+go mod download
+go run cmd/answer/main.go init -C ./answer-data
+```
+_Note: If the first command doesn't work, try running the second one. The 
process may take some time, please be patient._
+
+![go success](go-success.png)
+When you see [SUCCESS], means the operation has done. **Do not close this 
program at this time.** Enter the prompted URL `http://localhost:80/install/` 
in your web browser to open and proceed with the next step of the installation.
+
+_Note: If you cannot find the localhost page when opening the URL, try running 
the following command first and then retry:_
+```
+cd ./ui
+pnpm pre-install
+pnpm install
+pnpm build
+cd ..
+```
+
+
+## II. Installation Interface
+
+Open `http://localhost:80/install/`, and you will see the following interface. 
The first step is to choose the language.
+![install1](install1.png)
+
+### 2.1 Configure the Database
+
+You can create an Answer database using your own database software.
+Apache Answer supports MySQL, PostgreSQL, and SQLite as database backends. The 
smallest environment requirement is SQLite, which doesn't need any additional 
configuration.
+If you plan to use MySQL or PostgreSQL, you need to **set up the database 
first** and then configure the database connection in this step.
+![install2](install2.png)
+
+**This article will use MySQL as an example.**
+
+#### Create a Database
+
+In the `MySQL command line`, create a database named `answer`:
+![create database](database.png)
+
+#### Configure the Database Connection
+
+Visit `http://localhost:80/install/`, and enter your database connection 
information in the installation interface:
+- User name: root
+- Database host: 127.0.0.1:3306
+- Password: your database password
+![database settings](database2.png)
+
+### 2.2 Create a Configuration File
+
+In the installation interface, follow the prompts to create a `config.yaml` 
file.
+![install3](install3.png)
+
+### 2.3 Set Website Information and Administrator Account
+
+Make sure to remember the website URL (e.g., `http://localhost`) and the 
administrator account information and password, as you will need them for 
future logins.
+![install4](install4.png)
+
+### 2.4 Complete the Installation
+![install5](install5.png)
+
+
+## III. Run the Backend
+
+Back to the `command line terminal`, and in the root directory of the Answer 
project, run the following command to start the backend server:
+```
+go run cmd/answer/main.go run -C ./answer-data
+```
+
+
+## IV. Verify the Installation
+
+In your web browser, visit the website URL you set up (e.g., 
`http://localhost`). Log in with your administrator account. If you see the 
following page, the configuration is successful:
+![answer page](answer-page.png)
+
+
+By following these steps, you have successfully set up the Apache Answer 
backend. If you encounter any issues, feel free to communicate with our 
community members in the [community](https://meta.answer.dev/). We also warmly 
welcome you to [contribute to the 
community](https://answer.apache.org/community/contributing/) and work together 
to build a better Q&A platform.
diff --git 
a/blog/2024-08-20-apache-answer-backend-configuration-guide/install1.png 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/install1.png
new file mode 100644
index 000000000..18e217f12
Binary files /dev/null and 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/install1.png differ
diff --git 
a/blog/2024-08-20-apache-answer-backend-configuration-guide/install2.png 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/install2.png
new file mode 100644
index 000000000..65b661477
Binary files /dev/null and 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/install2.png differ
diff --git 
a/blog/2024-08-20-apache-answer-backend-configuration-guide/install3.png 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/install3.png
new file mode 100644
index 000000000..f25a9c21b
Binary files /dev/null and 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/install3.png differ
diff --git 
a/blog/2024-08-20-apache-answer-backend-configuration-guide/install4.png 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/install4.png
new file mode 100644
index 000000000..ccf322939
Binary files /dev/null and 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/install4.png differ
diff --git 
a/blog/2024-08-20-apache-answer-backend-configuration-guide/install5.png 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/install5.png
new file mode 100644
index 000000000..9a562aa28
Binary files /dev/null and 
b/blog/2024-08-20-apache-answer-backend-configuration-guide/install5.png differ
diff --git a/blog/authors.yml b/blog/authors.yml
index ebdb55c92..662db7431 100644
--- a/blog/authors.yml
+++ b/blog/authors.yml
@@ -21,3 +21,16 @@ shuai:
   title: Developer
   url: https://github.com/shuashuai
   image_url: https://avatars.githubusercontent.com/u/30591202?v=4
+
+ZhuXuanlyu:
+  name: Zhu Xuanlyu
+  title: Developer
+  url: https://github.com/IamMelody233
+  image_url: https://avatars.githubusercontent.com/u/103870995?v=4
+
+ChenJiaji:
+  name: Chen Jiaji
+  title: Developer
+  url: https://github.com/CHENJUaaa
+  image_url: https://avatars.githubusercontent.com/u/137683102?v=4
+  
\ No newline at end of file
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/clone-answer.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/clone-answer.png
new file mode 100644
index 000000000..f0239f1b8
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/clone-answer.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/copy-ssh.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/copy-ssh.png
new file mode 100644
index 000000000..c1cd07ccd
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/copy-ssh.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/fork-answer.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/fork-answer.png
new file mode 100644
index 000000000..84fc6e9ff
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/fork-answer.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/index.md
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/index.md
new file mode 100644
index 000000000..d779a6a44
--- /dev/null
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/index.md
@@ -0,0 +1,94 @@
+---
+title: "Apache Answer 前端配置指南"
+authors: [ChenJiaji, ZhuXuanlyu, Anne]
+category: Tutorials
+featured: true
+image: [email protected]
+description: "Answer前端配置保姆级教学"
+
+---
+
+我们的官网为开发者提供了[开发者指南](https://answer.apache.org/zh-CN/docs/development/)帮助开发者能够快速完成前后端的配置,在今天这篇博客里,我们对如何进行前端和后端配置进行详细的拆解。
+
+在 Answer 
社区,我们欢迎并尊重多种不同的[贡献方式](https://answer.apache.org/zh-CN/community/contributing/),无论是开发者还是非开发者可以跟随文章里面的步骤,完成
 Answer 前端配置
+
+
+### 1. 下载 Node.js 和 pnpm
+
+点击[此处](https://nodejs.org/en)下载 Node.js,安装时选择 `Node.js runtime`。建议安装至默认位置。
+![node install](node-install.png)
+
+在 Node 安装好之后,找到 `Node.js command prompt`。
+![node command](node-command.png)
+
+打开 Node.js command prompt,输入`npm install -g pnpm`。当出现下面图的情况时,表示 pnpm 已经下载完成。
+![pnpm install](pnpm-install.png)
+_注:pnpm有许多其他下载方式,适用于不同操作系统,详细请见其官网_
+
+
+
+### 2. Clone the Repository
+
+这个步骤目的是从 GitHub 中获取 Apache Answer 
整个项目,点击[此处](https://github.com/apache/incubator-answer)访问 Apache Answer 的 
GitHub Repo。
+
+
+#### 2.1 Fork Answer 项目
+
+登录 GitHub 账号,点击 Fork 整个 Answer 的项目。
+![fork answer](fork-answer.png)
+
+
+#### 2.2 安装 Git/Git Bash
+
+点击[此处](https://git-scm.com/downloads),按照系统幸好,选择下载 Git。
+
+
+#### 2.3 创建并配置 SSH
+
+你可以浏览 GitHub 关于[通过 SSH 连接到 
GitHub](https://docs.github.com/zh/authentication/connecting-to-github-with-ssh)
 的文档,可跳过文档中为硬件安全密钥生成新的 SSH 密钥。
+
+下图展示了配置完成后的 SSH 密钥。
+![ssh configuration](ssh-configuration.png)
+
+
+#### 2.4 获取 Answer 项目
+
+在 Answer GitHub 界面中找到 Code,点击展开后,复制 Answer 的 SSH 地址。
+![copy ssh](copy-ssh.png)
+
+接着,打开 Git Bash ,输入以下指令克隆项目。
+```
+git clone <Answer的SSH地址>
+```
+如下图所示,完成之后就把项目成功拉取到本地文件夹。
+![clone answer](clone-answer.png)
+
+
+
+### 3. 安装所有依赖项并构建所有本地包
+
+我们将 Answer 项目的文件夹称为根目录,打开`命令行终端`运行以下命令,并从该目录进入 `ui` 子目录。
+```
+cd ./ui
+pnpm install
+```
+
+**注意:Windows 系统,在运行 pnmp install 会遇到以下报错:**
+![windows-error](windows-error.png)
+这是由于系统权限导致的问题,可以先输入以下命令:
+```
+Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
+```
+这条命令用于设置当前用户的 PowerShell 执行策略为 RemoteSigned,这意味着本地脚本可以运行,而远程脚本必须经过签名。
+
+接着便可以顺利运行,运行完成后,视为安装完成。
+![install complete](install-complete.png)
+
+
+
+### 4. 运行前端
+
+配置完成后,在 ui 文件夹路径输入:`pnpm start` 即可运行 Answer。
+![pnpm start](pnpm-start.png)
+
+你已经完成 Answer 的前端配置,如果你仍有其他问题,欢迎你在我们的[社区](https://meta.answer.dev/)和我们的小伙伴交流。
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/install-complete.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/install-complete.png
new file mode 100644
index 000000000..0f170831c
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/install-complete.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/node-command.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/node-command.png
new file mode 100644
index 000000000..4de8fdda0
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/node-command.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/node-install.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/node-install.png
new file mode 100644
index 000000000..5881cf51a
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/node-install.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/pnpm-install.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/pnpm-install.png
new file mode 100644
index 000000000..d73484598
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/pnpm-install.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/pnpm-start.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/pnpm-start.png
new file mode 100644
index 000000000..235ea6b18
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/pnpm-start.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/ssh-configuration.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/ssh-configuration.png
new file mode 100644
index 000000000..09f9e1c42
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/ssh-configuration.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/windows-error.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/windows-error.png
new file mode 100644
index 000000000..07d49893e
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-16-apache-answer-frontend-configuration-guide/windows-error.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/answer-page.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/answer-page.png
new file mode 100644
index 000000000..74ec33f3b
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/answer-page.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/database.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/database.png
new file mode 100644
index 000000000..2f05daf2c
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/database.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/database2.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/database2.png
new file mode 100644
index 000000000..4a59fcd3b
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/database2.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/go-success.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/go-success.png
new file mode 100644
index 000000000..52cdfdcce
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/go-success.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/index.md
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/index.md
new file mode 100644
index 000000000..0aa64f1e9
--- /dev/null
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/index.md
@@ -0,0 +1,99 @@
+---
+title: "Apache Answer 后端配置指南"
+authors: [ZhuXuanlyu, ChenJiaji, Anne]
+category: Tutorials
+featured: true
+image: [email protected]
+description: "Answer后端配置保姆级教学"
+
+---
+
+在 [Apache Answer 
前端配置指南](https://answer.apache.org/zh-CN/blog/2024/08/16/apache-answer-frontend-configuration-guide)中,相信大家都能跟随每一步完成前端配置。本文将详细指导你如何配置
 Apache Answer 的后端,我们将一步一步地进行讲解,确保每个人都能上手并成功运行。
+
+## 准备工作
+
+1. 下载 Golang
+    从[官方网站](https://go.dev/doc/install)下载并安装 Go 语言, 按默认设置安装即可。
+
+2. Clone Answer 项目
+    确保你已经克隆了 Apache Answer 到本地,如还未克隆,请阅读 [Apache Answer 
前端配置指南](https://answer.apache.org/zh-CN/blog/2024/08/16/apache-answer-frontend-configuration-guide)。
+
+
+## 一、初始化项目
+
+在 Answer 项目根目录打开`命令行终端`运行以下命令。
+```
+go mod download
+go run cmd/answer/main.go init -C ./answer-data
+```
+_注:如果第一条跑不出来可先跑第二条,运行时间可能较长,请耐心等待。_
+
+![go success](go-success.png)
+看到 `[SUCCESS]` 
即运行成功,**注意此时不要关闭该程序**。在网页输入所提示的网址:`http://localhost:80/install/`,打开并进行下一步安装。
+
+_注:如果打开网址找不到此localhost页面,尝试先运行以下命令再重试_
+```
+cd ./ui
+pnpm pre-install
+pnpm install
+pnpm build
+cd ..
+```
+
+
+## 二、安装界面
+
+打开 `http://localhost:80/install/` 将看到以下界面,第一步选择语言。
+![install1](install1.png)
+
+### 2.1 配置数据库
+
+你可以使用自己的数据库软件创建 Answer 数据库
+Apache Answer 支持 MySQL、PostgreSQL 和 SQLite 作为数据库后端。环境最小的是 SQLite,不需要任何额外配置。
+如果要使用 MySQL 或 PostgreSQL,则需要**先设置数据库**,然后在此步骤中配置数据库连接。
+![install2](install2.png)
+
+**本文将以 MySQL 为例进行说明。**
+
+#### 创建数据库
+
+在`MySQL 命令行`中创建一个名为 answer 的数据库:
+![create database](database.png)
+
+#### 配置数据库连接
+
+访问 `http://localhost:80/install/`,在安装界面中输入你的数据库连接信息:
+- User name: root
+- Database host: 127.0.0.1:3306
+- Password: 你的数据库密码
+![database settings](database2.png)
+
+### 2.2 创建配置文件
+
+在安装界面中,按照提示创建 `config.yaml` 文件。
+![install3](install3.png)
+
+### 2.3 设置网页信息和管理员账号
+
+请记住网站URL(如`http://localhost`)以及管理员账号信息密码,方便后续登陆。
+![install4](install4.png)
+
+### 2.4 完成安装
+![install5](install5.png)
+
+
+## 三、运行后端
+
+回到`命令行终端`,在answer项目根目录运行以下命令启动后端服务器 。
+```
+go run cmd/answer/main.go run -C ./answer-data
+```
+
+
+## 四、验证安装
+
+在浏览器中访问你设置的网站 URL(例如:`http://localhost`),登陆你的管理员账号,如果看到一下页面,即配置成功。
+![answer page](answer-page.png)
+
+
+通过以上步骤,你已经成功培植了 Apache Answer 
后端。如果遇到其他问题,欢迎你在[社区](https://meta.answer.dev/)中和我们的社区成员进行沟通。我们也非常欢迎你参与到[社区贡献](https://answer.apache.org/zh-CN/community/contributing/)中来,为打造更好的问答平台,一同努力。
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/install1.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/install1.png
new file mode 100644
index 000000000..18e217f12
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/install1.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/install2.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/install2.png
new file mode 100644
index 000000000..65b661477
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/install2.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/install3.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/install3.png
new file mode 100644
index 000000000..f25a9c21b
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/install3.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/install4.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/install4.png
new file mode 100644
index 000000000..ccf322939
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/install4.png
 differ
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/install5.png
 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/install5.png
new file mode 100644
index 000000000..9a562aa28
Binary files /dev/null and 
b/i18n/zh-CN/docusaurus-plugin-content-blog/2024-08-20-apache-answer-backend-configuration-guide/install5.png
 differ
diff --git a/i18n/zh-CN/docusaurus-plugin-content-blog/authors.yml 
b/i18n/zh-CN/docusaurus-plugin-content-blog/authors.yml
index ebdb55c92..2659442c8 100644
--- a/i18n/zh-CN/docusaurus-plugin-content-blog/authors.yml
+++ b/i18n/zh-CN/docusaurus-plugin-content-blog/authors.yml
@@ -21,3 +21,15 @@ shuai:
   title: Developer
   url: https://github.com/shuashuai
   image_url: https://avatars.githubusercontent.com/u/30591202?v=4
+
+ZhuXuanlyu:
+  name: Zhu Xuanlyu
+  title: Developer
+  url: https://github.com/IamMelody233
+  image_url: https://avatars.githubusercontent.com/u/103870995?v=4
+
+ChenJiaji:
+  name: Chen Jiaji
+  title: Developer
+  url: https://github.com/CHENJUaaa
+  image_url: https://avatars.githubusercontent.com/u/137683102?v=4
diff --git a/static/img/blog/[email protected] 
b/static/img/blog/[email protected]
new file mode 100644
index 000000000..74a8ce5f4
Binary files /dev/null and b/static/img/blog/[email protected] differ
diff --git a/static/img/blog/[email protected] 
b/static/img/blog/[email protected]
new file mode 100644
index 000000000..66f3604e7
Binary files /dev/null and b/static/img/blog/[email protected] differ
diff --git a/static/img/blog/[email protected] 
b/static/img/blog/[email protected]
new file mode 100644
index 000000000..7cf4b3054
Binary files /dev/null and b/static/img/blog/[email protected] differ
diff --git a/static/img/blog/[email protected] 
b/static/img/blog/[email protected]
new file mode 100644
index 000000000..2e059e2f2
Binary files /dev/null and b/static/img/blog/[email protected] differ
diff --git a/static/img/blog/[email protected] 
b/static/img/blog/[email protected]
new file mode 100644
index 000000000..ca736eeb8
Binary files /dev/null and b/static/img/blog/[email protected] differ
diff --git a/static/img/blog/[email protected] 
b/static/img/blog/[email protected]
new file mode 100644
index 000000000..f42580756
Binary files /dev/null and b/static/img/blog/[email protected] differ
diff --git a/static/img/blog/[email protected] 
b/static/img/blog/[email protected]
new file mode 100644
index 000000000..97e7a6204
Binary files /dev/null and b/static/img/blog/[email protected] differ
diff --git a/static/img/blog/[email protected] 
b/static/img/blog/[email protected]
new file mode 100644
index 000000000..1e17ec765
Binary files /dev/null and b/static/img/blog/[email protected] differ


Reply via email to