Skip to content
/ nfight Public

NFT marketplace with exchange, mint and cards battle dapp

License

Notifications You must be signed in to change notification settings

bsisic/nfight

Repository files navigation

NFighT

Mint NFT, trade it and play!

NFight is a web dapp based on the Ethereum blockchain.

Alt text Alt text Alt text

Features

  • wallet binding (Metamask)
  • mint NFT (import images and create unique assets)
  • buy/sell/trade on an open market

Tech

NFighT is created with :

  • Next.js
  • Solidity
  • Hardhat
  • Ether.js
  • IPFS
  • Storybook

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

  • dockerize
  • production cloud deploy (gcp/k8s)
  • create the NFT card generator
  • add the playground UI
  • setup the pvp system

License

MIT