Skip to content

kobvel/blockchain-nodejs

Repository files navigation

Build Status Coverage Status

Decentralized blockchain network

Blockchain is a core concept behine all modern decentralized cryptocurrencies. In this repo you can check manually how does it work on the basic level.

Root repository includes submodule repository with the multi-functional wallet which allows:

  • Create multiple wallets
  • Send coins between wallets
  • Switch between blockchain nodes (if system is fully decentralized it must not make difference which node you use for the transactions)

Quick start

1. Decentralized application

To feel the real taste of the decentralized applications and the power behind it I highly recoomend to follow this part of build and setup applicaiton locally. Because of complexity of deploying multiple in the docker images and network dependencies, I decided to create Client-Server build, so you can easily pull it as a docker image.

Instruction

npm install
git submodule init
git submodule update

You will get installed all needed dependencies and nested blockchain-nodejs-wallet application. Make sure you have declared variable environment DOCKER_HOST. You can check it by running $echo $DOCKER_HOST from your terminal.

The last step is to compose all images:

  • blockchain node1
  • blockchain node2
  • blockchain node3
  • wallet

by running:

docker-compose up -d

You can find more details in the corresponding docker-compose file.

Result

To check your image statuses:

docker-compose -ps

docker-compose ps

Now you can open your wallet image address in the browser and explore the app!

2. Client-server build

This is simplified build of application with the connected blockchain server to wallet client. Was created to give a simple way to pull docker image and play around without any extra configuration.

Warning:

It is not the way real blockchain systems work Was created just for the DEMO purpose

You can pull latest image by running

docker pull kobvel/blockchain-nodejs

Here is public link to the image: https://hub.docker.com/r/kobvel/blockchain-nodejs/

About

A simple blockchain implementation using Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published