https://github.com/stephenwu2020/fabric-insurance
Insurance App on Hyperledger Fabric
https://github.com/stephenwu2020/fabric-insurance
fabric-sdk hyperledger insurance vue
Last synced: 8 months ago
JSON representation
Insurance App on Hyperledger Fabric
- Host: GitHub
- URL: https://github.com/stephenwu2020/fabric-insurance
- Owner: stephenwu2020
- License: mit
- Created: 2020-06-21T11:06:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-26T11:29:05.000Z (over 5 years ago)
- Last Synced: 2024-05-28T20:38:37.026Z (over 1 year ago)
- Topics: fabric-sdk, hyperledger, insurance, vue
- Language: Go
- Homepage:
- Size: 17.7 MB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fabric保险网络
这款应用搭建在Hyperledger Fabric之上,模拟了客户、商家、保险公司、警察机关之间的密切协作。客户购买商品及其保险,若是商品损坏、丢失,可向保险公司申请赔偿。在物品丢失的情况下,客户需要首先向警察机关报失登记,警察机关确认后,保险公司根据保单规则赔偿。
## 网络部署
1. 拉取仓库[fabric-insurance](https://github.com/stephenwu2020/fabric-insurance)
2. 首先,进入fixtures文件夹
```
cd fixtures
```
3. 拉取工具、镜像
```
make dep
```
拉取的文件位于fixtures下的bin和config,拉取的镜像通过docker images命令查看
4. 新建网络
```
make new
```
5. 查看网络状态:
```
docker ps
```
## 启动服务
1. 进入server文件夹
```
cd server
```
2. 启动web服务
```
go run .
```
3. 浏览器访问web应用:localhost:8000
## 关闭
1. ctrl + c 终止web服务
2. 在fixtures目录下,执行 make destroy销毁网络
## 功能简介
在Shop界面,选择喜爱的商品,点击购买

填写购买的信息

购买成功后,自动跳转至保险合同界面

点击Claim,申请保单理赔

填写理赔信息之后,界面跳转到保单管理界面

保险公司可以选择:
1. Repair 交付修理厂修理
2. Reimburse 赔偿
3. Reject 拒绝
假设保险公司选择赔偿,点击Reimburse,理赔终结.