Giter Club home page Giter Club logo

blockchain-core-nodejs's Introduction

Blockchain Core - NodeJS

The objective of be a minimalist and efficient blockchain application built using Node.js. This application features a REST API for interaction and management, along with supporting peer-to-peer (P2P) connections with an integrated consensus protocol.

The aim of this project is to provide a solid and extensible foundation for those looking to explore the fundamental concepts of blockchain technology, without the added complexity of mining algorithms. It is ideal for educational environments, prototype development, or as a starting point for customized enterprise solutions.

Use Cases

This Simple Blockchain Core can be utilized in a variety of scenarios, including but not limited to:

  1. Educational Systems
  2. Product Prototyping
  3. Record Keeping and Auditing Application
  4. Smart Contracts and DApps Development
  5. Voting Systems

How to use

1. Install dependencies

  $ yarn or npm install

2. Run the first node

  $ npm run dev

3. Run the second node or more (change the ports if you want to run it in the same node)

  $ HTTP_PORT=8081 P2P_PORT=5002 PEERS=ws://localhost:5001 npm run dev

4. For miner block, make a request

  $ curl --request POST \
  --url http://localhost:8080/mine \
  --header 'Content-Type: application/json' \
  --data '{
	"data": "my data"
  }'

5. For get the blocks, make a request

  $ curl --request GET \
  --url http://localhost:8080/blocks 

6. For unit tests

  $ npm run tests

This project is continually evolving, and contributions are always welcome. We hope this Simple Blockchain Core serves as a valuable learning and development resource for the community.

Author

  • Harrisson Biaggio [hawkz]

blockchain-core-nodejs's People

Contributors

harri777 avatar

Stargazers

LUÍS CARLOS DE SOUZA  MENEZES avatar Badast avatar

Watchers

 avatar

Forkers

lcsouzamenezes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.