Skip to content

ichdamola/opensea-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opensea Lite(NFT Marketplace)

Diagrammatic Brief

nfts drawio

Technology Stack & Tools

Technology Description
Solidity Writing Smart Contracts
Javascript React & Testing
Ethers Blockchain Interaction
Hardhat Development Framework
Ipfs Metadata Storage
React Routers Navigational Components

Requirements For Initial Setup

  • Install NodeJS, should work with any node version below 16.5.0
  • Install Hardhat

Setting Up

1. Clone/Download the Repository

2. Install Dependencies:

$ cd opensea-lite
$ npm install

3. Boot up Local Development Blockchain

$ cd nft_marketplace
$ npx hardhat node

4. Connect Development Blockchain Accounts to Metamask

  • Copy the private key of the addresses and import it into Metamask.
  • Connect your Metamask to the Hardhat blockchain, network 127.0.0.1:8545.
  • If you haven't added Hardhat to the list of networks on your Metamask:
    1. Open up a browser, click the fox icon.
    2. Click the top center dropdown button listing all available networks, then click "Add Network."
    3. A form should pop up. Enter "Hardhat" for the "Network Name" field.
    4. Enter "http://127.0.0.1:8545" for the "New RPC URL" field.
    5. Enter "31337" for the chain ID. Click save.

5. Migrate Smart Contracts

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

6. Run Tests

$ npx hardhat test

Output

Screenshot 2024-03-04 at 15 04 34

7. Launch Frontend

$ npm run start

License

MIT