Blockchain Based Asset Transfer Application
Spring boot Hlf Starter is a library I wrote.It provides an easy way to get your Spring boot application using Hyperledger Fabric Gateway SDK v2.2 up and running quickly.
Spring boot Hlf Starter Project Link: https://github.com/susimsek/spring-boot-hlf-starter
I developed the backend of The Asset Transfer application using this library. Asset Transfer Application is a blockchain based fullstack application.The chaincode part of the application is written in Go, the backend part is written in Spring boot, and the frontend part is written in Angular.
The asset transfer application can be accessed from this link.
http://hlf-k8.tk
The swagger ui can be accessed from this link.
http://api.hlf-k8.tk/swagger-ui.html
The hyperledger explorer dashboard can be accessed from this link.
http://explorer.hlf-k8.tk
You can login to hyperledger explorer with these credentials.
Username | Password |
---|---|
admin | adminpw |
The grafana dashboard can be accessed from this link.
http://grafana.hlf-k8.tk
You can login to grafana with these credentials.
Username | Password |
---|---|
admin | adminpw |
-
Kubernetes 1.12+
-
Nfs Server
-
Ingress Controller
-
Minimum 8 cpu
-
Minimum 10 GB Ram
Edit these files according to your nfs server configuration.
Replace 192.168.12.9 with your nfs server ip
Replace /srv/kubedata with your nfs sharing path
Paths of the files to be edited
deploy/k8s/pv/fabricfiles-pv.yaml
deploy/k8s/pv/kafka-pv.yaml
deploy/k8s/pv/zookeeper-pv.yaml
deploy/setup/copy_fabricfiles.sh
deploy/setup/create_fabric_dir.sh
Copy deploy folder to your nfs server.
Go the path of deploy folder,run these scripts on your nfs server.
cd deploy/setup/nfs-server-setup
sudo chmod u+x *.sh
./create_fabric_dir.sh
./copy_fabricfiles.sh
cd deploy/k8s
sudo chmod u+x *.sh
./install.sh
- Vagrant 2.2+
- Virtualbox or Hyperv
- Minimum 8 cpu
- Minimum 10 GB Ram
cd deploy
vagrant up
vagrant ssh nfsserver
cd /vagrant/setup/nfs-server-setup
sudo chmod u+x *.sh
sudo ./install_nfs.sh
./create_fabric_dir.sh
./copy_fabricfiles.sh
exit
vagrant ssh haproxy
cd /vagrant/setup/haproxy-setup
sudo chmod u+x *.sh
sudo ./install_haproxy.sh
exit
vagrant ssh k8smaster
cd /vagrant/setup/kubernetes-setup
sudo chmod u+x *.sh
./install-prereqs.sh
cd /vagrant/k8s
sudo chmod u+x *.sh
./install.sh
- Go 1.14.6
- Spring Boot 2.5.5
- Angular 8.2.14
- Kafka
- Hyperledger Fabric 2.3
- Couchdb
- Hyperledger Explorer 1.1.8
- Swagger
- Docker
- Kubernetes
- Vagrant
Şuayb Şimşek - @linkledin - suaybsimsek58@gmail.com
Project Link: https://github.com/susimsek/spring-boot-hlf-k8s-fullstack-blockchain-app