All Projects → togettoyou → Blockchain Real Estate

togettoyou / Blockchain Real Estate

Licence: mit
🚀基于区块链的房地产交易系统小模型。提供销售和捐赠功能。本项目使用Hyperledger Fabric构建区块链网络, go编写智能合约,应用层使用gin+fabric-sdk-go调用合约。前端展示使用vue+element。体验地址:http://blockchain.togettoyou.com/web

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Blockchain Real Estate

Blockchainbooks.github.io
Blockchain Books
Stars: ✭ 139 (+71.6%)
Mutual labels:  blockchain, smart-contracts, hyperledger-fabric
Stellar Contracts
Stellar contract examples and components
Stars: ✭ 36 (-55.56%)
Mutual labels:  blockchain, smart-contracts
Loyalty Points Evm Fabric
Sample use of Ethereum smart contract in Hyperledger Fabric
Stars: ✭ 35 (-56.79%)
Mutual labels:  blockchain, hyperledger-fabric
Learn Solidity
Code base for "Learn Solidity: Programming Language for Ethereum Smart Contracts" course in Tosh Academy & Blockchain Council
Stars: ✭ 44 (-45.68%)
Mutual labels:  blockchain, smart-contracts
Ethereum book
精通以太坊 (中文版)
Stars: ✭ 875 (+980.25%)
Mutual labels:  blockchain, smart-contracts
Bigchaindb Hyperledger
BigchainDB integration with HyperLedger Fabric. In collaboration with TheLedger
Stars: ✭ 20 (-75.31%)
Mutual labels:  blockchain, hyperledger-fabric
Blockchain Learning
Learn and promote blockchain together by writing
Stars: ✭ 44 (-45.68%)
Mutual labels:  blockchain, hyperledger-fabric
Balance Transfer Go
A sample go app to demonstrate fabric-client & fabric-ca-client go SDK APIs
Stars: ✭ 19 (-76.54%)
Mutual labels:  blockchain, hyperledger-fabric
Ethereumbook
Mastering Ethereum, by Andreas M. Antonopoulos, Gavin Wood
Stars: ✭ 11,663 (+14298.77%)
Mutual labels:  blockchain, smart-contracts
Remix
This has been moved to https://github.com/ethereum/remix-project
Stars: ✭ 1,063 (+1212.35%)
Mutual labels:  blockchain, smart-contracts
Waves
⛓️ Reference Waves Blockchain Node (client) implementation on Scala
Stars: ✭ 1,077 (+1229.63%)
Mutual labels:  blockchain, smart-contracts
Solidity Smart Contracts
smart contracts which are built on ethereum wallet mist,truffle compiler using solidity language.
Stars: ✭ 11 (-86.42%)
Mutual labels:  blockchain, smart-contracts
Gdai.io
gDAI - Gas less DAI transfers by using GSN, Fulcrum and KyberNetwork
Stars: ✭ 26 (-67.9%)
Mutual labels:  blockchain, smart-contracts
Decentralized Energy Fabric On Ibp20
Set up a network on the IBM Blockchain Platform and deploy a decentralized energy smart contract on the network.
Stars: ✭ 29 (-64.2%)
Mutual labels:  blockchain, hyperledger-fabric
Aeternity
æternity: solving scalability problems by making sense of state-channels
Stars: ✭ 923 (+1039.51%)
Mutual labels:  blockchain, smart-contracts
Smart Contracts Example
Simple example of token market. Based on blockchain technology using Ethereum platform.
Stars: ✭ 37 (-54.32%)
Mutual labels:  blockchain, smart-contracts
Smart Contracts
Ethereum smart contracts for security and utility tokens
Stars: ✭ 1,187 (+1365.43%)
Mutual labels:  blockchain, smart-contracts
Fabric Multi Network
Stars: ✭ 16 (-80.25%)
Mutual labels:  blockchain, hyperledger-fabric
Snax
Decentralized Social Media Overlay
Stars: ✭ 18 (-77.78%)
Mutual labels:  blockchain, smart-contracts
Mortgageblockchainfabric
Mortgage Processing App using Hyperledger Fabric Blockchain. Uses channels for privacy and access, and restricts read/write previleges through endorsement policies
Stars: ✭ 45 (-44.44%)
Mutual labels:  blockchain, smart-contracts

blockchain-real-estate

扫码_搜索联合传播样式-标准色版.png

2020.6.24 更新详细运行步骤

  1. 确保你的项目目录为$GOPATH/src/github.com/togettoyou/blockchain-real-estate

  2. 项目由于未使用mod管理,请先将go mod环境设置为auto: go env -w GO111MODULE=auto

  3. 首先测试chaincode是否正常调用,运行chaincode/blockchain-real-estate/chaincode_test.go测试用例 image

  4. 在deploy目录下运行./start.sh,观察有无报错提示。运行成功后在终端执行docker exec cli peer chaincode invoke -C assetschannel -n blockchain-real-estate -c '{"Args":["queryAccountList"]}' 等cli命令,Args可以替换为Invoke中的funcName,先验证链码是否正确安装及区块链网络能否正常工作。建议./start.sh之前可以先运行./stop.sh清理一下环境。 image

  5. 如果以上都成功,说明区块链网络是没有问题的。接下来同样先执行application/sdk_test.go单元测试,看是否可以成功使用sdk调用链码(此步骤前提你区块链网络即以上步骤已成功启动) image

  6. 运行application,go run main.go

我的本机测试环境: image


分割线


🚀基于区块链的房地产交易系统小模型。提供销售和捐赠功能。本项目使用Hyperledger Fabric构建区块链网络, go编写智能合约,应用层使用gin+fabric-sdk-go调用合约。前端展示使用vue+element。前后端分离。

注:本项目需放在 $GOPATH/src/github.com/togettoyou/blockchain-real-estate 下运行

在线体验地址

技术栈

  • Hyperledger Fabric
  • Docker
  • Go Gin
  • Vue
  • ElementUI

运行

默认已经安装Hyperledger Fabric环境,如果未安装,参考:https://www.yuque.com/togettoyou/blog/his57f

我的本机环境参考:

Snipaste_2020-03-19_14-52-13

1、克隆本项目放在 $GOPATH/src/github.com/togettoyou/blockchain-real-estate

2、进入deploy目录,执行start.sh脚本

# 赋予权限
sudo chmod +x *.sh
# 启动区块链网络
./start.sh
# 停止区块链网络
./stop.sh
# 如果启动失败,可能是环境清理不干净,可以尝试先./stop.sh清理环境再./start.sh启动

3、进入application目录,启动应用程序

# 编译
go build
# 赋予权限
sudo chmod +x application
# 启动
./application

4、浏览器访问 http://localhost:8000/web

目录结构

application : go gin + fabric-sdk-go 调用链码,提供外部访问接口,前端静态资源放在dist目录下

chaincode : go 编写的智能合约

deploy : 区块链网络的配置以及启动停止脚本

vendor : 项目所需依赖包,防止网络原因下载失败

vue : vue + element的前端展示页面

# 如果需要修改前端页面,在vue目录下执行
yarn install
# 启动
yarn dev
# 重新打包生成dist资源,将dist放到application目录下覆盖
yarn build:prod

screenshots : 截图

功能流程

管理员为用户业主创建房地产。

业主查看名下房产信息。

业主发起销售,所有人都可查看销售列表,购买者购买后进行扣款操作,并等待业主确认收款,交易完成,更新房产持有人。在有效期期间可以随时取消交易,有效期到期后自动关闭交易。

业主发起捐赠,指定受赠人,受赠人确认接收受赠前,双方可取消捐赠/受赠。

演示效果图

Mar-19-2020_15-28-20

感谢

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].