Oracle machine Truora study notes 2--Truora-Web installation and deployment

Install Truora-Web front-end components

See the documentation: Truora-Web - Introduction- 《Truora v1.0.0 Documentation》 - 书栈网· BookStack

Truora-Web is the front-end component of the Truora service.

It mainly supports the query of request details and request history. It is convenient for the application to query the result of its own oracle request. If it fails, you can see the reason for the request failure.

This project is the front-end service of the blockchain middleware Truora-Service oracle machine, developed based on the vue-cli framework.

pull code

​
cd /fiscoV3.2/

git clone https://github.com/WeBankBlockchain/Truora-Web.git

cd Truora-Web
​

Configure Ngjinx service

# 拷贝项目的 Nginx 配置

cp docker/truora-web.conf /etc/nginx/conf.d/


# 备份原有 index.html 文件

mv /usr/share/nginx/html/index.html /usr/share/nginx/html/index.html.back

# 拷贝项目文件

cp -r dist/* /usr/share/nginx/html

start nginx

#启动 Nginx

nginx

# check process

$ ps -ef | grep -i nginx

# detection port

$ netstat -anp | grep -i listen| grep -i tcp|grep 5020

* Browser access

Open the browser and enter http://[IP]:5020, for example: http://127.0.0.1:5020

Since the truora-web component does not yet support V3.3.0 chain nodes, the address of the oracle contract deployed on the server cannot be displayed on the page.

 

Guess you like

Origin blog.csdn.net/u012084827/article/details/130803264