Skip to content

gigatesseract/smartPDS

Repository files navigation

smartPDS

Implementation of a decentralised public distribution system using blockchain.
Coded in two days from scratch as part of Pragyan Hackathon 2019

Built With 🏠

  • Ganache - For a personal Ethereum blockchain.
  • Truffle - A development framework for building dapps.
  • Solidity - For implementing smart contracts.
  • Lots of 💙 from Team Alpha 🐺🐺🐺

Run 🏃 🏃 🏃

  1. git clone https://github.com/gigatesseract/smartPDS.git
  2. cd smartPDS
  3. npm install (If npm command is not found, try sudo apt install nodejs npm and then npm install)
  4. Download ganache appImage here and run it.
  5. Install metamask extension for your browser.
  6. Configure the metamask extension to let it communicate between ganache and your dapp.
    • Create a metamask account. You will be given a 8-word seed phrase. Keep the seed phrase safe
    • Fire up the metamask extension. Change network to Custom RPC
    • In the RPC URL field, enter the URL shown by Ganache at its top window and press Enter.
    • In Ganache, click the 🔑 button of any one account and copy the Private key.
    • In metamask, click your account image, go to import account and paste the Private key. Check here for more details.
    • Once everything is set, you are good to go. Now go back to terminal.
  7. truffle migrate (Use truffle migrate --reset if you want to overwrite build files) If metamask configuration was done right this will deduct fake ethereum from the account which you configured in the metamask, as this is where the contract is deployed in the blockchain
  8. npm run dev

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •