How to easily create a Web3 Mint Website from scratch | React, Hardhat, Ethers

Sdílet
Vložit
  • čas přidán 30. 07. 2024
  • In this video we will be creating a simple Web3 mint website.
    openzeppelin contracts:
    import '@openzeppelin/contracts/access/Ownable.sol';
    import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
    import '@openzeppelin/contracts/utils/math/SafeMath.sol';
    Description:
    React: reactjs.org/
    Hardhat: github.com/nomiclabs/hardhat
    Ethers: docs.ethers.io/v5/
    -----------
    Chapters:
    0:00 Mint Button Web3 Application
    1:37 React, Ethers, Hardhat, and Web3 Setup
    3:56 Writing a Basic Smart Contract that can Mint
    11:41 Creating the Mint Button
    19:40 Writing our Visible Elements
    22:43 Testing our Mint Button Site
    26:03 Web3 Front End Apps are Simple
    -----------
    Subscribe to my channel: / @edrohdev
    for more algorithm explanations, tech discussions, and programming tutorials!
    -----------
    Hey there, my name’s EdRoh. On my channel, you will find common coding algorithms and/or interview questions (with explanations of course). I also provide tutorials and courses on other programming topics in Web Development including Javascript, React, HTML, CSS, TypeScript, Redux, Node, Progressive Web Apps, React Native, Flutter, etc.
    No matter what level you are, whether you are already in the software engineering field, or are just beginning coding in bootcamp or being self taught, my first and foremost desire is to help you provide with the best teaching content and learning resource I possibly can. As someone who understands the struggles of switching careers, I hope I can help guide you into this difficult but rewarding journey into engineering.
  • Věda a technologie

Komentáře • 74

  • @ElonRust42069
    @ElonRust42069 Před 2 lety +3

    Simple, short and sweet. Easily understandable.

  • @itsliaa4223
    @itsliaa4223 Před 2 lety +2

    omg please post more I've been trying to look for a tutorial like this.

  • @0x0abb
    @0x0abb Před 2 lety +1

    very nice - short but loaded with useful content!

  • @djblast101
    @djblast101 Před 2 lety

    This was the best tutorial that makes it simple af. Thank you

  • @enchance
    @enchance Před 2 lety

    I like your content very much. I usually watch videos at 1.75 speed to save time (programming vids) and I must say you sound real smooth at 1.75.

  • @justinfleagle
    @justinfleagle Před 2 lety

    This is very good. Well paced as well.

  • @devkyu7674
    @devkyu7674 Před 2 lety

    Thanks! Love your tutorials!

  • @0xkoko449
    @0xkoko449 Před 2 lety +1

    Awesome tutorial!! Now I have plans for tomorrow! 🖖🏼👩🏼‍🎤

  • @darrellrussell7259
    @darrellrussell7259 Před 2 lety +1

    love it, very helpful!

  • @catreunion
    @catreunion Před 2 lety

    Thank you so much! I learnt a lot from this tutorial.

  • @ehinderoisrael1697
    @ehinderoisrael1697 Před 2 lety

    Just finished coding along, thanks for the content

  • @paddev5901
    @paddev5901 Před 2 lety +1

    Thanks, this was really helpful!

  • @jeanmanuel6577
    @jeanmanuel6577 Před 2 lety +1

    This is very helpful. thank you!

  • @pitbul67204
    @pitbul67204 Před 2 lety +1

    Great tutorial 👍

  • @zokpls8712
    @zokpls8712 Před rokem

    u are a GOD

  • @VINNIE9119
    @VINNIE9119 Před 2 lety

    thx so much

  • @ricky3441
    @ricky3441 Před 2 lety +2

    Just wondering, why youtube ban smart contract making tutorials hahah, anyway amazing tutorial waiting for the next tutorial 🔥🔥

  • @Tonbeans
    @Tonbeans Před 2 lety

    how do you claim the ETH, as the owner of the contract, from the transactions that people have made?

  • @Androgamer-yx7tu
    @Androgamer-yx7tu Před 2 lety

    Can you tell me where the "setMintFunction" is defined which we are using in onClick?

  • @jc3po798
    @jc3po798 Před 2 lety

    After enabling the hard hat at 2:57 I try to install the dependencies but the option of yes or no doesn’t come up for me. What should I do

  • @benjaminbouskila8500
    @benjaminbouskila8500 Před 2 lety +1

    hi when i run npx create-react-app web3 it says success but it doesnt create any file can someone help ?

  • @vakulsaxena2105
    @vakulsaxena2105 Před 2 lety +1

    Estimate gas error ? Any solution

  • @sijalbindu307
    @sijalbindu307 Před 2 lety

    hey so i just got a quick quastion ,after i run hard hat and try to install the sample project, I run into a error saying it cannot install gitimore , gives me error hh16 saying it cannot run it on the file that i have (full-mint-site). what do you suggest i should try

  • @phonesecurity2878
    @phonesecurity2878 Před rokem +1

    add this to fix some errors in jsx scope for new react version
    import React from 'react';
    import ReactDom from 'react-dom';

  • @aminabcf5749
    @aminabcf5749 Před rokem

    at the end i got Compiled with problems: module ethers not found error how can i solve that even though i have installes the ethers module

  • @sjohncreations4369
    @sjohncreations4369 Před 2 lety

    Saw that in some of your videos you were going to type .tsx, did you try playing around with hardhat & typescript?

  • @andrea_zero
    @andrea_zero Před 2 lety

    Maybe a dumb question. How can i create a real website instead of localhost? If i got my website project and create a pege with mint button, how to link the minting button to my website? Thanks.

  • @RdozeTV
    @RdozeTV Před 2 lety

    How to pass costs??? T_T I got insufficient funds when trying to mint using none owners account

  • @chenchou
    @chenchou Před 2 lety +2

    Would you please provide your source code, thanks?

  • @itzbigmoney
    @itzbigmoney Před 2 lety

    Will this work for Cronos Blockchain? Cronos is apparently "EVM-compatible"...

  • @GenchoOganisyan
    @GenchoOganisyan Před 2 lety

    You showed how to create a test button on localhost - can you explain how to connect to a personal website? maybe some files need to be uploaded to the hosting? or something else? I haven't seen any examples of how to connect to a live website, only localhost
    how i can contact you?

  • @MatthewJacobus66
    @MatthewJacobus66 Před 2 lety +1

    Can you share the code here? it will be really helpeful!

  • @clownobservatory5580
    @clownobservatory5580 Před 2 lety

    Is it normal to get all those warnings when installing hardhat?

  • @iszzytechofficial9404
    @iszzytechofficial9404 Před 2 lety

    Please How can I add NFT prices

  • @joseysusamigos
    @joseysusamigos Před 2 lety

    what is theme vscode?

  • @sg3mes751
    @sg3mes751 Před 2 lety

    How to use IPFS in it?

  • @ondo4509
    @ondo4509 Před 2 lety +2

    Excuse me Sir, i wanted to know wether i have to deploy a new smart contract only for the website or could i take the deployed smart contract for my NFT collection?

  • @NK-xk7me
    @NK-xk7me Před 6 měsíci

    Everything worked but my window just shows „this is how you create a mint button“. Did someone solved this issue?

  • @detroit666
    @detroit666 Před 2 lety

    im getting an HH8 error :(

  • @eternalgaming8710
    @eternalgaming8710 Před 2 lety

    hi once we created mint button like end of the video how are we gonna design our whole website page?

    • @bellywash6684
      @bellywash6684 Před 2 lety

      You're gonna have to watch some tutorials on html, css and javascript. Or find a template somehwere.

  • @mattaertker4783
    @mattaertker4783 Před 2 lety

    So I absolutely loved the tutorial, just one question: after receiving the tokens from the mint, how do you associate those minted tokens with a jpeg? For example, when I have done other mints, it isn't displayed as a token in my wallet, but a label saying skull #113 or something like that. Do you know how to implement this?

    • @LucasTST
      @LucasTST Před 2 lety

      would love an answer to this as well

    • @EdRohDev
      @EdRohDev  Před 2 lety

      hey matt, in this video i have not done so for the sake of video brevity. Depending on the platform, you want to use (ie Opensea vs rarible) the implementation might be different. but let's take Opensea for example, go to google and type "opensea metadata standards", click the opensea link and under the section "implementing token uri", should be some guidelines. Essentially you will have to create a baseTokenUri variable and create a function that sets this variable to the url to which your file is hosted. As with all things blockchain, it is a bit more confusing than it looks.

    • @0x0abb
      @0x0abb Před 2 lety +2

      check out moralis nft tutorials - here Filip goes a bit more depth: czcams.com/video/tBMk1iZa85Y/video.html

  • @kionlarsen7029
    @kionlarsen7029 Před 2 lety

    Did anybody manage to complete this, because my React just leaves me with "This is how you create a mint button0", everything seems to be working, I have created and running the node, contracts is created, but website does not work :(

    • @NK-xk7me
      @NK-xk7me Před 6 měsíci

      Same Problem, did u solved it?

  • @youngvenom4463
    @youngvenom4463 Před 2 lety +1

    just wanted to ask what is that symbol at 20:09

  • @crypto_peng
    @crypto_peng Před 2 lety

    yo man you should join our DAO( no just kidding
    where is your Twitter account?

  • @0xkoko449
    @0xkoko449 Před 2 lety +1

    9999.9998 eth 😩🤯

  • @DrDre001
    @DrDre001 Před 2 lety

    Upload the code to a gist

  • @mileezy
    @mileezy Před 2 lety +1

    What code editor is this? Looks slick

  • @simonll411
    @simonll411 Před 2 lety

    holy s* dis roh from lbac?

  • @Paco1337
    @Paco1337 Před 2 lety

    Line 52:34: 'setMintAmmount' is not defined no-undef
    Line 54:34: 'setMintAmmount' is not defined no-undef
    I'm getting this and like 170 other errors

    • @bellywash6684
      @bellywash6684 Před 2 lety +1

      You spelled amount wrong

    • @Isa-dw7wo
      @Isa-dw7wo Před 2 lety

      its supposed to be setMintAmount not setMintAmmount

  • @youngvenom4463
    @youngvenom4463 Před 2 lety

    for me only this is how you create a mint button zero nothing else pops up like the metamask wallet

  • @pankajjoshi8292
    @pankajjoshi8292 Před 2 lety +1

    Tutorial looks good , but pls teach us hardhat other basics first

    • @EdRohDev
      @EdRohDev  Před 2 lety +1

      thanks! for sure I can make some more basic videos of the tech here. it can be a bit messy with all the packages with Web3 but i can do more focused videos

  • @joshandrews5887
    @joshandrews5887 Před 2 lety

    If u have a second, i sent you an email

  • @othmanehachad2778
    @othmanehachad2778 Před 2 lety

    hey man great tutorial really loved it !! I came across this error that i cant seem to find the answer of :
    THIS LINE : const response = await contract.mint(BigNumber.from(mintAmount));
    Error: cannot override "_hex","_isBigNumber" (operation="overrides", overrides=["_hex","_isBigNumber"], code=UNSUPPORTED_OPERATION, version=contracts/5.6.0)
    Do you have any idea of how i could fix this ??

    • @zokpls8712
      @zokpls8712 Před rokem

      same, cant figure this out

    • @NK-xk7me
      @NK-xk7me Před 6 měsíci

      Just don’t use it, ethers said it is already inside