🔗 Learn Blockchain Programming with JavaScript
🚀 This project provides a comprehensive introduction to blockchain technology and its effective implementation using JavaScript. You will gain hands-on experience in programming your own blockchain, understanding its core concepts, deploying it to the cloud, and achieving decentralization. This project was developed independently, focusing on topics such as cryptocurrencies, centralized and distributed ledgers, public and private keys, and mining. You will dive into implementing the blockchain core engine and web API, followed by the steps required to decentralize your blockchain.
✅ Create and host a blockchain using Node.js and Express.js. 🔒 Secure data integrity using sha-256 hashing. 🔄 Conflict resolution through the longest node selection method. 📡 API endpoints:
/resolve
: Resolve conflicts between nodes./nodes/register
: Register new nodes in the network./transaction
: Add new transactions to the blockchain./blockchain
: Get the current state of the blockchain./mine
: Mine new blocks and add them to the blockchain.
- Clone the repository:
git clone https://github.com/nileshkr17/web3.0--js.git
- Navigate to the project directory:
cd web3.0--js
- Install dependencies:
npm install
- Start the application:
npm start
⚡️ The goal of this project is to demonstrate the effective use of blockchain technology in JavaScript, ensuring data security, integrity, and decentralization. The project is designed to be scalable and flexible, allowing for further exploration and expansion.
-add-block #above code transfer to express -res.json(blockchain)