This code contains the Solidity implementation of the NFT Warranty cards. Here are the public getters and public mutation functions.
Install Truffle for running and testing blockchain locally
npm i -g truffle
Install ganache to run local ethereum blockchain. Download the desktop version from Here Clone this repository locally. Get inside this folder and run
npm install
Start Local ethereum blockchain using Ganache. Simply run the application and click on "QUICKSTART"
Get inside the code respository using command line
Run following command
truffle migrate
and the server will start.
Start the ganache server like we did in the "Running blockchain locally" above. Get inside the repository using command line and execute.
truffle test ./test/flipCard_test.js
This will deploy the server and run the tests so you can check that the smart contract is providing all the functionalities.