- Express.js β API
- Mongoose.js β ODM Library for MongoDB
- TypeScript β Type-safety
- Swagger β API Documentation
- Genesis Block: Creates the first block in the blockchain.
- Add Block: Add new blocks to the blockchain.
- Get Chain: Get all blocks from the blockchain stored in the Mongo database.
- Validate Chain: Verify the integrity of the blockchain by checking that each block hash is correct and that the previous hash matches the current block.
git clone https://github.com/luna-zx/mini-blockchain.git
cd mini-blockchain
npm i
npm run buildMONGO_URL = # your MongoDB connection url
PORT = # your API portnpm startAfter starting the app,
go to API docs (swagger) at: http://localhost:<YOUR_API_PORT>/swagger