Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.29 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.29 KB

NFT-Karma

Pre-requisites

In order to run the project, you need to have installed truffle and ganache

npm install -g truffle
npm install -g ganache

If you want to use metamask, it's recomended to use metamask.

Then:

  1. Start ganache:
    cd Backend
    npm run ganache-dev
  1. Deploy the contract:
    cd Backend
    truffle deploy
  1. If you want to update the contract, then:
    • Redeploy the contract: truffle migrate --reset.
    • Copy the new deployed contract address (from the stdout of truffe) to Frontend/src/utils/SmartContractConnector.ts.

Example run

  1. Start the ganache blockchains with the settings configured as in truffle-config.js

  2. Load some addresses in metamask.

  3. Open remix, paste the contract in the contracts folder.

  4. Deploy the contract in remix if the contract isn't deployed already (with truffle migrate)

  5. Now you should be able to interact with the contract !!

Linkuri utile

Test Driven Solidity

Exemplu frontend

Other tutorial