Giter VIP home page Giter VIP logo

cc-power's Introduction

ChainCode-Electricity-Power

项目是基于该大佬的基础上进行修改,感谢大佬的分享:https://github.com/kevin-hf/education

项目同步到 gitee:https://gitee.com/KiceAmber/chaincode-power-trading.git

技术栈

  • Golang:后台逻辑开发
  • Vue3+Ts:前端界面开发
  • GoSDK:使用 Go 版本的超级账本开发链码

说明

需要编辑 sudo vim /etc/hosts 文件,添加下面的内容,保存退出

172.0.0.1 orderer.example.com
172.0.0.1 peer0.org1.example.com
172.0.0.1 peer1.org1.example.com
172.0.0.1 peer0.org2.example.com
172.0.0.1 peer1.org2.example.com

前置环境

  • nodejs
  • go 1.8.5
  • docker
  • docker-compose
  • fabric v2.2 版本
  • fabric-ca v1.4.7 版本

运行

后端及链码部分

# 需要将powerTrading项目移动到 ${GOPATH}/src/ 目录下,然后运行下面的命令
$ pwd 
${GOPATH}/src/powerTrading

$ ./clean_docker.sh # 运行后端以及链码部分

前端

$ pwd
${GOPATH}/src/chaincode-power-Trading/system

$ npm run dev # 运行前端项目

区块链浏览器

$ pwd
${GOPATH}/src/powerTrading/explorer

$ chmod u+x ./restart.sh
$ ./restart.sh

涉及的加密算法

cc-power's People

Contributors

kiceamber avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.