https://github.com/akashrajpurohit/node-blockchain
Blockchain Example using Node.js
https://github.com/akashrajpurohit/node-blockchain
blockchain blockchain-explorer consensus decentralized-network nodejs
Last synced: 6 months ago
JSON representation
Blockchain Example using Node.js
- Host: GitHub
- URL: https://github.com/akashrajpurohit/node-blockchain
- Owner: AkashRajpurohit
- License: mit
- Created: 2019-09-23T16:55:01.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T08:21:04.000Z (almost 2 years ago)
- Last Synced: 2024-05-30T02:13:39.942Z (over 1 year ago)
- Topics: blockchain, blockchain-explorer, consensus, decentralized-network, nodejs
- Language: JavaScript
- Homepage: http://localhost:3001/block-explorer
- Size: 324 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Blockchain App using Node.js
## Things I've learned while building this
* Building the blockchain class with its required functionality.
* Accessing the blockchain with express API.
* Creating a decentralized blockchain network.
* Synchronizing the entire network.
* Create Consensus.
* Building Block Explorer (UI tool to view blockchain data) etc..## Running the APP locally
### Prerequisites
1. NodeJS:
Please install [NodeJS](https://nodejs.org/en/) >= 10.15.0. If you already have it, you're good to go.2. Yarn:
Visit Yarn [download page](https://yarnpkg.com/en/docs/install). Select your Operating system and follow the instructions.Once you have the [Prerequisites](#prerequisites) covered:
1. Clone this repository from GitHub onto your local computer.
```sh
git clone https://github.com/AkashRajpurohit/node-blockchain.git
```2. Navigate into the project folder and install all of its necessary dependencies with Yarn.
```
cd node-blockchain
yarn install
```
3. Start the server
```sh
yarn start
```> This will start the decentralized network on ports 3001 - 3006. Visit each node at these urls.
* [http://localhost:3001/](http://localhost:3001/)
* [http://localhost:3002/](http://localhost:3002/)
* [http://localhost:3003/](http://localhost:3003/)
* [http://localhost:3004/](http://localhost:3004/)
* [http://localhost:3005/](http://localhost:3005/)
* [http://localhost:3006/](http://localhost:3006/)
---## Todo:
* [ ] Prepare and publish Postman docs.---
## Visit my portfolio
[Akash Rajpurohit](https://akashrajpurohit.cf)