Skip to content

lhphat02/IE104_frUIT

Repository files navigation

From UIT - NFT Marketplace

A simple NFT Marketplace Web3 for my class's project and portfolio as well

🚗 Create with

react logo nextjs logo solidity logo hardhat logo

🚀 For developing (Local)

## Requirements For Initial Setup - Install [NodeJS](https://nodejs.org/en/) - Install [Hardhat](https://hardhat.org/)

Setting Up

1. Clone/Download the Repository

2. Install Dependencies:

$ npm install

3. Boot up local development blockchain

$ npx hardhat node

4. Connect development blockchain accounts to Metamask

  • Copy private key of the addresses and import to Metamask
  • Connect your metamask to hardhat blockchain, network 127.0.0.1:8545.
  • If you have not added hardhat to the list of networks on your metamask, open up a browser, click the fox icon, then click the top center dropdown button that lists all the available networks then click add networks. A form should pop up. For the "Network Name" field enter "Hardhat". For the "New RPC URL" field enter "http://127.0.0.1:8545". For the chain ID enter "31337" or "1337" if an tx error occurs. Then click save.

5. Migrate Smart Contracts

$ npx hardhat run scripts/deploy.js --network localhost

  • If you deploy your contract to localhost, remember to change the ABI address and add new contract ABI file in folder 'context'.

6. Run Tests

$ npx hardhat test

7. Launch Frontend

$ npm run dev

LICENSE

- MIT