• This repository has been archived on 17/May/2024
  • Stars
    star
    114
  • Rank 306,076 (Top 7 %)
  • Language
    JavaScript
  • Created over 2 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Hardhat NFT Marketplace

This repo has been updated to work with Sepolia over Goerli.


Hardhat NextJS Marketplace


This is a repo showing how to make an NFT Marketplace from scratch!

Huge Shoutout to Matt Durkin for his help on this repo!

Full Repo

Getting Started

Requirements

  • git
    • You'll know you did it right if you can run git --version and you see a response like git version x.x.x
  • Nodejs
    • You'll know you've installed nodejs right if you can run:
      • node --version and get an ouput like: vx.x.x
  • Yarn instead of npm
    • You'll know you've installed yarn right if you can run:
      • yarn --version and get an output like: x.x.x
      • You might need to install it with npm

Quickstart

git clone https://github.com/PatrickAlphaC/hardhat-nextjs-nft-marketplace-fcc
cd hardhat-nextjs-nft-marketplace-fcc
yarn

Typescript

TODO!!

For the typescript edition, run:

git checkout typescript

Optional Gitpod

If you can't or don't want to run and install locally, you can work with this repo in Gitpod. If you do this, you can skip the clone this repo part.

Open in Gitpod

Remember if you are using gitpod then you cannot connect your local hardhat node with metamask. To resolve this you can use vs code or testnets instead of local node.

Usage

Deploy:

yarn hardhat deploy

Testing

yarn hardhat test

Deployment to a testnet or mainnet

  1. Setup environment variabltes

You'll want to set your SEPOLIA_RPC_URL and PRIVATE_KEY as environment variables. You can add them to a .env file, similar to what you see in .env.example.

  • PRIVATE_KEY: The private key of your account (like from metamask). NOTE: FOR DEVELOPMENT, PLEASE USE A KEY THAT DOESN'T HAVE ANY REAL FUNDS ASSOCIATED WITH IT.
  • SEPOLIA_RPC_URL: This is url of the sepolia testnet node you're working with. You can get setup with one for free from Alchemy
  1. Get testnet ETH

Head over to faucets.chain.link and get some tesnet ETH. You should see the ETH show up in your metamask.

  1. Deploy
yarn hardhat deploy --network sepolia

Thank you!

If you appreciated this, feel free to follow me or donate!

ETH/Polygon/Avalanche/etc Address: 0x9680201d9c93d65a3603d2088d125e955c73BD65

Patrick Collins Twitter Patrick Collins YouTube Patrick Collins Linkedin Patrick Collins Medium

More Repositories

1

nft-mix

Solidity
803
star
2

dungeons-and-dragons-nft

#chainlink #nft
JavaScript
603
star
3

hardhat-security-fcc

Solidity
402
star
4

all-on-chain-generated-nft

A repo for generating random NFTs with metadata 100% on chain!
JavaScript
354
star
5

dao-template

TypeScript
239
star
6

full-stack-web3-metamask-connectors

178
star
7

chainlink_defi

Build a defi yield farmable dApp. Get started here.
JavaScript
157
star
8

smart-contract-frameworks

A list of smart contract frameworks
C
119
star
9

rwa-creator

Solidity
117
star
10

hardhat-smartcontract-lottery-fcc

JavaScript
116
star
11

hardhat-nft-fcc

JavaScript
101
star
12

simple-storage-fcc

Solidity
98
star
13

unstoppable-ui

JavaScript
88
star
14

async-python

Shows how to use async requests vs requests
Python
87
star
15

ethers-simple-storage-fcc

JavaScript
85
star
16

hardhat-fund-me-fcc

JavaScript
82
star
17

defi-stake-yield-brownie

Solidity
78
star
18

hardhat-simple-storage-fcc

JavaScript
75
star
19

smartcontract-lottery

Solidity
75
star
20

PatrickAlphaC

75
star
21

aave_brownie_py

Solidity
61
star
22

nextjs-smartcontract-lottery-fcc

JavaScript
60
star
23

foundry-play

Solidity
59
star
24

fund-me-fcc

Solidity
56
star
25

pokemon-nft

Pokémon NFTs
Solidity
54
star
26

defi-stake-yield-brownie-freecode

Solidity
53
star
27

simple_storage

Solidity
51
star
28

erc20-brownie

Solidity
50
star
29

fund_me

Solidity
48
star
30

web3_py_simple_storage

Python
45
star
31

nextjs-nft-marketplace-moralis-fcc

JavaScript
45
star
32

storage-factory-fcc

Solidity
43
star
33

lens-blog

A minimal example of using Lens Protocol to build a blog
JavaScript
40
star
34

nextjs-nft-marketplace-thegraph-fcc

JavaScript
39
star
35

hardhat-erc20-fcc

JavaScript
38
star
36

nft-demo

Python
37
star
37

html-js-ethers-connect

JavaScript
36
star
38

defi_py_mix

Solidity
36
star
39

storage_factory

Solidity
35
star
40

hardhat-defi-fcc

Solidity
35
star
41

aave_web3_py

web3.py way to interact with aave
Python
35
star
42

graph-nft-marketplace-fcc

TypeScript
32
star
43

html-fund-me-fcc

JavaScript
30
star
44

sc-language-comparison

Solidity
30
star
45

denver-security

Solidity
29
star
46

smartcontract-upgrades-example

JavaScript
28
star
47

foundry-smart-contract-lottery-f23

Solidity
27
star
48

brownie_fund_me

Solidity
25
star
49

nextjs-ethers-metamask-connect

JavaScript
24
star
50

weather-nft

chainlink weather nfts
Solidity
24
star
51

brownie_simple_storage

Python
23
star
52

chainlink-the-graph

JavaScript
22
star
53

flashloan-forta-py

Python
22
star
54

chainlink-hardhat

JavaScript
20
star
55

upgrades-mix

Solidity
19
star
56

openweathermap_cl_ea

JavaScript
17
star
57

multicall-js

JavaScript
17
star
58

denver-security-challenges

Solidity
16
star
59

hardhat-upgrades-fcc

JavaScript
16
star
60

ai-stablecoin

Solidity
15
star
61

multicall

Python
15
star
62

staking-ui-demo

JavaScript
15
star
63

decentralized-raffle

TypeScript
15
star
64

signatureVerification

Solidity
15
star
65

ipfs_cl_ea

IPFS Chainlink External Adapter
JavaScript
14
star
66

hardhat-dao-fcc

TypeScript
14
star
67

get-all-transactions

Python
14
star
68

hardhat-simple-storage

JavaScript
13
star
69

aave_brownie_py_freecode

Solidity
13
star
70

hardhat-events-logs

JavaScript
12
star
71

nextjs-moralis-metamask-connect

JavaScript
12
star
72

hardhat-metamorphic-upgrades-fcc

JavaScript
12
star
73

defi-dapp

TypeScript
12
star
74

battle-game

JavaScript
11
star
75

foundry-vyper

A package for deploying and compiling vyper code in foundry
Solidity
11
star
76

fuzzing-example

Solidity
10
star
77

vyper-chain-info

Python
10
star
78

vrf_pizza

lol
Solidity
10
star
79

dapptools-demo

Solidity
10
star
80

nextjs-web3-react-metamask-connect

JavaScript
10
star
81

filecoin_cl_ea

JavaScript
9
star
82

puppy-raffle-smartcon

Solidity
9
star
83

eth-global-live-audit

Solidity
9
star
84

ape-fund-me-v23

Python
8
star
85

erc20-brownie-py

Python
8
star
86

brownie-events-logs

Python
7
star
87

patrickalphac.com

TypeScript
7
star
88

unfinished-defi-workshop

JavaScript
6
star
89

vrf_pizza_front_end

lol
CSS
6
star
90

gcp-weather

Solidity
6
star
91

nextjs-web3modal-metamask-connect

JavaScript
6
star
92

smartcon-hacker-house-hunt-rules

6
star
93

hardhat-fund-me-forked-fcc

JavaScript
5
star
94

geo_db_brownie

Solidity
5
star
95

clever-lottery-web3

JavaScript
5
star
96

scavenger-hunt

TypeScript
5
star
97

nextjs-ethers-introduction-fcc

JavaScript
5
star
98

nextjs-usedapp-metamask-connect

JavaScript
5
star
99

send_blob

Python
5
star
100

hackathon_scraper

Python
4
star