在服务器上部署区块链溯源系统项目教程
该项目是借鉴于别人的视频教程,这里把详细步骤做成文档,供大家参考。
步骤一 配置文件
[client]
host = localhost
user = debian-sys-maint
password = yURjKL7sSoeDGDA9
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host = localhost
user = debian-sys-maint
password = yURjKL7sSoeDGDA9
socket = /var/run/mysqld/mysqld.sock
教程地址:
https://gitee.com/real__cool/fabric-trace#https://gitee.com/link?target=http%3A%2F%2Frealcool.top%3A9528%2F
视频搭建地址:https://www.bilibili.com/video/BV1Ar421H7TK
步骤二 启动区块链浏览器:
#启动区块链浏览器:
ubuntu@VM-8-10-ubuntu:~$ ./install-fabric.sh -f 2.5.6 d
bash: ./install-fabric.sh: No such file or directory
ubuntu@VM-8-10-ubuntu:~$ cd fabric-trace/blockchain/network
ubuntu@VM-8-10-ubuntu:~/fabric-trace/blockchain/network$ ./install-fabric.sh -f 2.5.6 d
步骤三 启动后端
#启动后端
ubuntu@VM-8-10-ubuntu:~$ cd fabric-trace/application/backend
ubuntu@VM-8-10-ubuntu:~/fabric-trace/application/backend$ ls
controller dist go.mod go.sum main.go middleware model pkg router settings tmp
ubuntu@VM-8-10-ubuntu:~/fabric-trace/application/backend$ go run main.go
步骤四 启动前端
启动前端:
Last login: Tue Apr 2 14:22:08 2024 from 220.194.156.153
ubuntu@VM-8-10-ubuntu:~$ vim fabric-trace/application/web/.env.development
ubuntu@VM-8-10-ubuntu:~$ vim fabric-trace/application/web/src/router/index.js
ubuntu@VM-8-10-ubuntu:~$ cd fabric-trace/application/web
ubuntu@VM-8-10-ubuntu:~/fabric-trace/application/web$ ls
babel.config.js jsconfig.json package.json README.md tests
build LICENSE postcss.config.js README-zh.md vue.config.js
jest.config.js mock public src
ubuntu@VM-8-10-ubuntu:~/fabric-trace/application/web$ npm install
请求地址:http://152.136.147.39:9528/#/login?redirect=%2Fuplink
服务器地址:
https://console.cloud.tencent.com/lighthouse/instance/detail?searchParams=rid%3D8&rid=8&id=lhins-mh6dg05c
官方地址:http://realcool.top:9528/#/uplink
节点可视化界面:http://realcool.top:8080/#/