Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aniket-engg/nodejs-blockchain
This is a blockchain with extra data implemented using node.js
https://github.com/aniket-engg/nodejs-blockchain
Last synced: about 1 month ago
JSON representation
This is a blockchain with extra data implemented using node.js
- Host: GitHub
- URL: https://github.com/aniket-engg/nodejs-blockchain
- Owner: Aniket-Engg
- Created: 2018-05-27T07:46:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-03T08:13:47.000Z (about 6 years ago)
- Last Synced: 2024-10-28T16:37:16.799Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 10.8 MB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blockchain with ExtraData
This is a sample Blockchain developed keeping a usecase in mind in which one who appends the latest block can add any kind of extra data to that block and the data will be visible only to that block-appender.
## Getting Started
This project doesn't provide any user interface, you will get only the REST API server.
This is developed using node.js, so make sure you have [Node.js](http://nodejs.org/) installed.```sh
git clone https://github.com/Aniket-Engg/nodejs-blockchain
cd nodejs-blockchain
npm install
npm start
```
API Server will be running on [ http://localhost:5000/api/v1
]( http://localhost:5000/api/v1
).Break this command (ctrl+c) to stop the server
## Debugging
Use `nodejs-Blockchain/src/logs/blockchainApiServerLogs.log` to debug
## Documentation
This server provides below APIs :
```
/blocks: To get the list of blocks
/mine: To add a new block
/addpeer: To add peer
/peers: To get the lost of all peers
```
For more insights, [this](https://medium.com/@aniketengg/blockchain-with-extra-data-using-node-js-641932ba76de) can help.
Note: This code is not for production-use.