Sign inSign up

hibuz/blockchain-java

By hibuz

•Updated over 6 years ago

Block chain java

Image
0

414

hibuz/blockchain-java repository overview

⁠BlockChain Demo

This is a Block Chain Demo Application

⁠Development

To start your application in the dev profile, simply run:

./gradlew

⁠Building for production

To optimize the blockchain demo application for production, run:

./gradlew -Pprod :chain-core:clean :chain-core:build

To ensure everything worked, run:

java -jar chain-core/build/libs/*.jar

⁠Testing

To launch your application's tests, run:

./gradlew :chain-core:test

⁠Using Docker to simplify development (optional)

You can also fully dockerize your application and all the services that it depends on. To achieve this, first build a docker image of your app by running:

./gradlew :chain-core:build docker

Then run:

docker run -rm -p 6565:6565 hibuz.com/chain-core

⁠Rest APIs

MethodPathDescription
GET/Redirect to /swagger-ui.html
GET/api/Get block chain info
POST/api/?msg={msg}create newBlock with msg
POST/api/recruitcreate newBlock with generated recruit email

⁠For demo

Tag summary

Content type

Image

Digest

Size

104.8 MB

Last updated

over 6 years ago

docker pull hibuz/blockchain-java