Giter VIP home page Giter VIP logo

web3-nft-marketplace-hardhat's Introduction


Logo

Web3, Full Stack Solidity, Smart Contract & Blockchain development with JavaScript

My Web3 full stack Solicity smart contract & blockchain development journey along with
» this course from Patrick Collins



view marketplace app in action


Getting Started

  1. Clone the repo
git clone https://github.com/levblanc/web3-nft-marketplace-hardhat.git
  1. Install dependencies with yarn install or npm install

  2. Create a .env file under project's root directory

PRIVATE_KEY=private_key_of_your_wallet
ETHERSCAN_API_KEY=your_etherscan_api_key
GOERLI_ALCHEMY_URL=rpc_url_from_provider
GOERLI_INFURA_URL=rpc_url_from_provider
PINATA_API_KEY=pinata_api_key
PINATA_API_SECRET=pinata_api_secret
UPLOAD_TO_PINATA=boolean_of_your_choice
UPDATE_FRONT_END=boolean_of_your_choice

Usage

For local development:

# spin up hardhat local node
yarn localhost

# deploy contract
yarn deploy:local

# Run `mint` function
yarn mint:local

For Goerli testnet:

# deploy contract to Goerli
yarn deploy:goerli

# Run `mint` function
yarn mint:goerli

Run tests

# Run unit tests
yarn test

Check tests coverage

yarn coverage

[Optional] Generate converage report

// hardhat.config.js
module.exports = {
  // ... other configs
  gasReporter: {
    enabled: true, // set to true when needs a report
  },
};

Lint Solidity files

# Lint only
yarn lint

# Lint & fix
yarn lint:fix

Code formatting

yarn format

Skills

  • Solidity
  • JavaScript
  • Hardhat
  • Chai
  • Mocha
  • Pinata

Roadmap

  • Creating a marketplace for ERC721 NFTs
  • Concept of 'Pull Over Push' when sending ETH
  • Ins & outs of Reentrancy attack
  • Solidity Events with indexed params
  • Solidity modifiers - review and application on marketplace
  • Unit tests for all NFTs
  • Scripts to interact with contract functions

web3-nft-marketplace-hardhat's People

Contributors

levblanc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.