0xDones / nodejs-blockchain-app

Node.js application based on bitcoin's blockchain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node.js Blockchain Application

This is an Application I developed following this course on udemy. I dockerized the application to make it easy to play with.

Getting Started

Install the dependencies

npm install

Running all test cases

npm run test

Running the application

# Starting first peer
npm run dev

# Starting second peer
HTTP_PORT=3002 P2P_PORT=5002 PEERS=ws://localhost:5001 npm run dev

# Starting third peer
HTTP_PORT=3003 P2P_PORT=5003 PEERS=ws://localhost:5001,ws://localhost:5002 npm run dev

Running the app using docker-compose

docker-compose -f docker-compose.yml up -d

About

Node.js application based on bitcoin's blockchain


Languages

Language:JavaScript 99.5%Language:Dockerfile 0.5%