bsisic / nfight

NFT marketplace with exchange, mint and cards battle dapp
MIT License
8 stars 4 forks source link
blockchain dapp ethereum etherjs hardhat ipfs nextjs nft nodejs react solidity storybook wallet web3

NFighT

Mint NFT, trade it and play!

NFight is a web dapp based on the Ethereum blockchain.

Alt text Alt text Alt text

Features

Tech

NFighT is created with :

Installation

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

/test

npx hardhat test

To do

License

MIT