Skip to content

romtref/nft-marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

DApp NFT Marketplace (OpenSea lookalike)

A simple replica of the popular NFT marketplace OpenSea
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. License

About The Project

A Marketplace that enables users to Mint, Buy, and Sell NFTs.

HOME

MINT NFT

MY PURCHASES

Built With

  • Solidity
  • Javascript
  • IPFS
  • Hardhat

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Click on Frontend to launch website

Prerequisites

  • Install NodeJS
  • Hardhat
    npm install hardhat --save-dev hardhat
  • Install Metamask
  • Install the network Hardhat from Metamask Wallet (Settings -> Networks -> Add Network)

Installations

Local Installation

1. Clone the repository

git clone https://github.com/rom1trt/nft-marketplace.git

2. Install NPM (Node Package Manager)

npm install

3. Initialize local development blockchain

npx hardhat node

  • 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". Then click save.

4. Run tests

npx hardhat test

5. Deploy smart contracts locally (local host) from the terminal

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

6. Launch Frontend locally (localhost)

npm run start

Installation Polygon Testnet (Mumbai)

1. Repeat steps 1-2

2. Sign up/Log in on Alchemy and create a new project with Polygon Mumbai as network

3. Add your Alchemy API key and Metamask private key in the .env file

4. Refresh environment variables

source .env

5. Deploy smart contracts on Mumbai Testnet from the terminal

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

Features

  • Mint an ERC721 nft and list it on the marketplace
  • Buy the any assets listed on the marketplace
  • Sell the NFTs you own

License

Distributed under the MIT License. See LICENSE for more information.

About

A marketplace where users can mint, sale, and purchase their NFTs (OpenSea lookalike)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published