This is the complete Full Stack DApp for the Ration Distribution System.
network/: The core Hyperledger Fabric blockchain network.chaincode-go/: The Smart Contract (business logic) written in Go.server/: The Node.js API Middleware connecting App to Blockchain.client/: The React Frontend Dashboard for Govt and Shops.
Ensure your network is up. If not:
cd network
./restore_network.ps1Open a terminal:
cd server
npm startServer runs on http://localhost:3000
Open a NEW terminal:
cd client
npm run devFrontend runs on http://localhost:5173 (or similar)
- Government: Create Stock Batches (recorded on blockchain)
- Shop: Issue Ration to Citizens (checks quota, deduplicates)
- Public: View Live Ledger of all assets and transactions also