This is an example of how a blockchain works but only for purely educational purposes, for example you will discover the basics like : blockchain transaction proof of work consensus protocol
Java 10 and maven OR docker
> mvn spring-boot:run
> docker build -t fchantrel/blockchain .
> docker run -p=8080:8080 fchantrel/blockchain
HealthCheck: http://localhost:8080/manage/health Doc Swagger : http://localhost:8080/swagger-ui.html
curl --request GET --url http://localhost:8080/demoBlockChain/blockchain/
curl --request POST \
--url http://localhost:8080/demoBlockChain/transactions \
--header 'content-type: application/json' \
--data '{
"sender":"d4ee26eee15148ee92c6cd394edd974e",
"recipient":"toi",
"amount":10
}'
curl --request POST --url http://localhost:8080/demoBlockChain/blocks