Skip to content

Latest commit

 

History

History
executable file
·
27 lines (21 loc) · 736 Bytes

README.md

File metadata and controls

executable file
·
27 lines (21 loc) · 736 Bytes

Magic the Gathering - Demo on Non-Fungible Tokens

Setup:

  1. This example relies on IPFS (https://ipfs.io/) so go ahead and follow the installation steps and run the ipfs daemon
  • ipfs daemon
  1. Let's write some smart contracts!
  • cd mtg/smart_contracts
  • truffle init
  • npm init
  • npm install --save openzeppelin-solidity
  1. We'll create an npm link between our smart contract package, and our front end
  • cd mtg/smart_contracts
  • npm link
  • cd ../
  • npm link smart_contracts
  1. Let's run our backend (so we can accept file uploads and hand them over to IPFS)
  • cd mtg/server
  • npm start
  1. And finally, let's run out frontend!
  • cd mtg/
  • npm run start