Skip to content

Jojae/teamate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

teamate

teamate

hyperledger fabric sample

pre-condition

  • curl, docker, docker-compose, go, nodejs, python
  • hyperledger fabric-docker images are installed
  • GOPATH are configured
  • hyperledger bineries are installed (cryptogen, configtxgen ... etcs)

-network

1. generating crypto-config directory, genesis.block, channel and anchor peer transactions

cd network

./generate.sh

2. starting the network, create channel and join

./start.sh

-chaincode

3. chaincode install, instsantiate and test(invoke, query, invoke)

./cc_tea.sh instantiate v1.0

-prototype

cd ../prototype

4. nodejs module install

npm install

5. certification works

node enrollAdmin.js

node registerUser.js

6. server start

node server.js

7. open web browser and connect to localhost:8080

prototype 사이트맵 구조

Untitled Diagram

-web_template

1. teamate/network 이동

cd network 

2. ./teardown.sh 실행을 통해 container 제거

./teardown.sh

3. ./start.sh 실행을 통한 network 실행

./start.sh

4. ./cc_tea.sh 실행을 통한 chaincode install

./cc_tea.sh

5. web_template 로 이동 후 npm 을 이용한

cd .. && cd web_template && npm install

6. enrollAdmin.js 실행을 통한 adminID 등록

web_teamplate 폴더안에 wallet 폴더가 존재하면 삭제 후 다음과 같은 명령어 실행

node enrollAdmin.js

7. registerUser.js 실행을 통한 user 등록

node registerUser.js

8. Server 실행

node server.js

Untitled Diagram (2)

9. web_complate

Untitled Diagram (1)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published