How to create your own Blockchain in 50 lines of codes with Glitch

This is an adaptation of my dev.to article for Glitch. It’s recommended to read it first, to understand the concept of this oversimplified Blockchain.

First step: Import this repo https://github.com/Icesofty/blockchain-demo
OR Remix this Glitch project (easier) https://glitch.com/~blockchain-glitch

Second step: If Node is not installed, follow this outstanding tutorial by @17lwinn How to install node 13+ (Guide)

Last step: run node app.js in your terminal

Congrats, you just mined your first block!
Awesome, right?

7 Likes

Thank you for the mention! :slight_smile:

1 Like

i’ve been waiting for oversimplified blockchain. Thank you!

also an idea: minecraft but in order to mine a block you need to actually mine a block in the blockchain and the difficulty syncs with your world settings