Git Product home page Git Product logo

my-first-nft's Introduction

NFT Test App

Get Started

  1. Clone the repo:
# Change to your workspace directory
cd ~/workspace/

git clone https://github.com/buildpeak/my-first-nft.git
  1. Compile and deploy NFT contract

    2.1. Install dependencies

    cd ./my-nft/
    
    npm install

    2.2. Create .env file

     API_URL='Your_alchemy_api_url'
     PRIVATE_KEY='Your_private_key'
     PUBLIC_KEY='Your_account_address'
    

    2.3. Compile and deploy contract

    npx hardhat compile
    
    npx hardhat run scripts/deploy.js --network sepolia

    2.4. Copy contract address and paste it in ./web-app/.env file

    REACT_APP_NFT_CONTRACT_ADDRESS=0x5Dba813f7F6133c81cDCbc70bF329F591228d3c8

    2.5. Copy contract JSON to ./web-app/src

    cp ./artifacts/contracts/MyNFT.sol/MyNFT.json ../web-app/src/
  2. Start Backend API

    cd ./api/
    
    docker-compose up
  3. Start Frontend App

    4.1. Install dependencies

    cd ./web-app/
    
    npm install

    4.2 Create .env file

    REACT_APP_API_BASE_URL=http://localhost:8080
    REACT_APP_NFT_CONTRACT_ADDRESS=0x5Dba813f7F6133c81cDCbc70bF329F591228d3c8
    REACT_APP_ETHERSCAN_BASE_URL=https://sepolia.etherscan.io/tx
    REACT_APP_IPFS_GATEWAY=https://ipfs.io/ipfs/
    # REACT_APP_ALCHEMY_API_URL=Your_alchemy_api_url # Optional

    4.3. Start app

    npm start

my-first-nft's People

Contributors

buildpeak 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.