NFight is a web dapp based on the Ethereum blockchain.
NFighT is created with :
NFighT requires Node.js v12+ to run.
Clone, install the dependencies.
git clone git@github.com:bsisic/nfight.git
cd nfight
npm i
Configure at the root of the project run:
touch .secret
touch config.js
add your raw private key in .secret file and copy/paste this in your config.js file
export const nftmarketaddress = ""
export const nftaddress = ""
open your terminal and run the following command to spin up a local network
npx hardhat node
this should create a local network with 19 accounts
then, keep the node running and in a new terminal window run
npx hardhat run scripts/deploy.js --network localhost
fill the empty strings in the config.js file with the contract addresses printed out by the CLI
add some of the accounts in your Metamask extension and start your app with :
npm run dev
/test
npx hardhat test
MIT