Truffle Tutorial for Beginners | Compile, Test & Deploy Smart contracts to any EVM Blockchain

Sdílet
Vložit
  • čas přidán 13. 09. 2024

Komentáře • 120

  • @EatTheBlocks
    @EatTheBlocks  Před rokem +1

    FREE MASTERCLASS "Get Into Web3 In a Bear Market"
    👉 Link: eattheblocks.com/masterclass
    👉 Full roadmap to learn Web3 Development & get a 6 figure remote job
    👉 EVEN during this bear market

  • @relaxwithmedia783
    @relaxwithmedia783 Před 3 lety +49

    Timestamps
    0:00 Introduction
    0:36 What is Truffle?
    2:01 Installing Truffle
    3:20 Setting up Project for Truffle
    4:38 Compiling Smart Contracts
    9:30 Checking / Quizzing Smart Contracts (Call it what you want]
    14:00 Deploying Smart Contracts
    23:39 Interacting With Smart Contracts
    ///// Good LLuck

  • @alicanalmacimeni8853
    @alicanalmacimeni8853 Před 3 lety +24

    I just searched truffle tutorial in your series, and you uploaded like 1 hour ago, looks like my wish 😄 I'm currently learning blockchain as a web developer, and your videos are great, thanks Julien, you are rock 🤜

    • @EatTheBlocks
      @EatTheBlocks  Před 3 lety +1

      Wonderful!

    • @sumesh7310
      @sumesh7310 Před rokem

      It's been a year, I hope you are a blockchain Developer now !!

  • @nikimoretti4297
    @nikimoretti4297 Před 8 měsíci

    Great tutorial! The clarity in explaining, its crucial for newcomers. I've been working on blockchain development for two years, and it's always inspiring to see content that eases the initial understanding.

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

    Very helpful, especially the part where you deploy and interact with the contract on BSC Testnet.

  • @1anre
    @1anre Před 3 lety +1

    I feel happy that I was able to understand & predict what each of those actions will return, as most of what you explained in this Truffle video was covered when I watched your “deploying SmartContracts video to Binance SmartChain” video, made lots of notes, practiced and debugged all the issues I had when deploying to bscTestnet, as truffle had some system-level issues while I was trying it out on the local ‘develop’ environment that truffle provides for development.
    I know I don’t know much about Ethereum Development fully yet, but that video of yours allowed me to pick an interest in Blockchain Development on the EVM framework.
    Will watch the “building a Frontend for SmartContracts” video next, as that seems the next interesting thing to me to focus on next.
    Julien for president!

  • @forex_shark6042
    @forex_shark6042 Před 3 lety +1

    We need two videos.. Building migration scripts to deploy contracts with dependency contracts like safemath, ect..
    It would also be cool to do a video on how to combined contracts into one big contract instead of using migration scripts to launch multiple dependent scripts. Great work

  • @coder8515
    @coder8515 Před 2 lety

    Thanks for another excellent video! You've the good "recipe": short videos full of info 👍

  • @alonadaphna
    @alonadaphna Před 3 lety +1

    You're amazing. It was very easy to understand. Thank you!

  • @martatofan1089
    @martatofan1089 Před 2 lety

    Just AMAZING tutorial👏🏽👏🏽👏🏽 you save me a lot of time. Greta job!

  • @DuskoRuzic
    @DuskoRuzic Před 3 lety +1

    Hey love your videos! Are you able to do one on how to interact with smart contracts and call a burn function?

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

    Hi, This is really an amazing tutorial for beginners and I appreciate your work.
    I have a quick question, Can we remove the default created smart contract and migration file by truffle? and if not then please tell us the reason.
    Thank you!

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

    Does this guy have a whole book on the ajax library?

  • @cosanostraytc1030
    @cosanostraytc1030 Před 2 lety

    Good tutorial man. Good work!!!

  • @benyaminlatifian3115
    @benyaminlatifian3115 Před 3 lety +1

    Thank you mr julian. Very good learn for guid.

  • @ragabnadim
    @ragabnadim Před rokem

    thanks for the video

  • @8h1n1e1e8
    @8h1n1e1e8 Před 3 lety +1

    I liked after 2minutes of upload

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

    Hello eattheblocks! Thanks for creating this video I have a quick hopefully easy question, the vim truffle-config command provides an output in the terminal instead of sublime or other editor? how do i make this change? i also tried to go into the project file truffle config and updated it there. however when i tried to compile i still received the Error: Truffle is currently using solc 0.5.16,
    Thanks, Z

  • @ginux9847
    @ginux9847 Před rokem

    thank you

  • @kentf6805
    @kentf6805 Před 2 lety

    I i love you videos. Couldnt you make a video on how to do this on the cronos chain?

  • @ushrestha224
    @ushrestha224 Před 2 lety

    Which OS are you using ?? Can you make tutorial for windows?

  • @faisalfarooquee
    @faisalfarooquee Před 2 lety

    That's what I am looking for!
    22:24 👨‍💻

  • @morankurdistan4716
    @morankurdistan4716 Před 3 lety

    you explain it like it's very simple thanks a Lot👍👌

  • @PAULTHEMAGNIFIK
    @PAULTHEMAGNIFIK Před 2 lety

    Great video, thanks!

  • @RENDAINFINITA369
    @RENDAINFINITA369 Před 2 lety

    THIS IS THE SAME OF CREATING A TOKEN OR THIS IS ONLY FOR SMART CONTRACT?

  • @MillionaireTrader
    @MillionaireTrader Před 2 lety

    Wow this was just so awesome
    Thank you so much :)

  • @henrytirla
    @henrytirla Před 2 lety

    Great work and i have an input, I think doing a video using vs code is highly beginner friendly working from the terminal can scare off beginers.

  • @thiagoaugusto300
    @thiagoaugusto300 Před 3 lety

    Good content, thank you.👍🏽

  • @TheMonacoExpress
    @TheMonacoExpress Před 2 lety

    what terminal is he using ? Not seen that syntax before

  • @dfilion3
    @dfilion3 Před 2 lety

    This is all running on the developer machine. What would be the best way to do something similar for ci/cd on a build server ?

  • @MrSuperGerald
    @MrSuperGerald Před 3 lety

    Could you please zoom in on your code? That would make it possible to watch your videos on a mobile.

  • @exeohe
    @exeohe Před 2 lety

    @ 4:30 I also have options for
    "node_modules
    package-lock.json
    package.json
    public
    src" ???

  • @All3me1
    @All3me1 Před rokem

    14:54
    I got the migrations folder but not the 1_initial_migration.js file

  • @CP-mb3jk
    @CP-mb3jk Před 2 lety

    I’m trying to understand the use case of these smart contracts. Saw the test example of the pet shop on the truffle tutorial. But still don’t see the benefit of using this blockchain template as opposed to a traditional java/other website. Any thoughts or use cases u could point me to?

  • @sco9114
    @sco9114 Před 2 lety

    Merci tu gères Julian :)

  • @ivanf.santos3335
    @ivanf.santos3335 Před 3 lety

    Very good!!!!

  • @0x_conspi
    @0x_conspi Před 2 lety

    Julien is really TopTopTop the best of the Best!

  • @ca7986
    @ca7986 Před 2 lety

    You are amazing dude

  • @kjm144
    @kjm144 Před 3 lety

    Great video. I literally fck'ed up trying to make DAPP with my BSC contract functions on my website.... any easy guide will be published?

  • @gabriel_rivas
    @gabriel_rivas Před 3 lety

    Hi Bro. You have 2 courses: DeFi Development Mastery and 6 Figures Blockchain developer. Both are updated? and Which must I take. I am a junior developer, but understand a lot, and I know full logical blockchain and how it works. I saw the description of both courses and both are good

    • @EatTheBlocks
      @EatTheBlocks  Před 3 lety +1

      Both are up-to-date yes.
      If you already know blockchain dev, take DeFi Dev Mastery :)

  • @Gamesforyourmind
    @Gamesforyourmind Před 3 lety

    You can do it!

  • @TheSumitBanik
    @TheSumitBanik Před 3 lety

    Hi Julien, I wanted to move into blockchain development. I've graduated in 2020 and now I work in an MNC as an Automation Test Engineer.
    Can I make a switch as I don't have any professional experience? :(
    I just started my journey; following all the steps as you mentioned in your roadmap video.
    Thanks!

    • @EatTheBlocks
      @EatTheBlocks  Před 3 lety

      We all have to start somewhere. As long as you are learning and enjoy Blockchain dev, you can make it :-)

  • @be.ttubee
    @be.ttubee Před 3 lety +1

    How can i stop ganache? Web search does not give me the answer.

  • @alexurban12
    @alexurban12 Před 3 lety

    Top video. Can you do a tutorial on coding auto-compounding for a manual compounding pool?

  • @angelomoon390
    @angelomoon390 Před 3 lety

    Hello, thank you for your amazing content. Do I need to know coding before taking your course ? Thank you

    • @EatTheBlocks
      @EatTheBlocks  Před 3 lety +1

      If you take the jumpstarter package, no need for coding background :)
      eattheblocks.com/6-figure-blockchain-developer/

  • @user-ff1jx9rc8u
    @user-ff1jx9rc8u Před 2 lety

    Спасибо большое!

  • @harshdalwadi7544
    @harshdalwadi7544 Před rokem

    I am having issue with the deployment. The contracts are getting compiled but are not getting deployed, so the console is not showing any deployment info, how do I solve this?

  • @jackquan7839
    @jackquan7839 Před 2 lety

    Thank you bro

  • @ronyjoseph7868
    @ronyjoseph7868 Před 3 lety

    Great

  • @camerondavis2012
    @camerondavis2012 Před 3 lety +1

    you lost me after you typed in truffle init, where are you typing all this at, on the command on your desktop or are you in visual studio or remix.ethereum or what?

    • @EatTheBlocks
      @EatTheBlocks  Před 3 lety

      In the terminal.

    • @camerondavis2012
      @camerondavis2012 Před 3 lety

      @@EatTheBlocks in what terminal though is there a certain application

    • @relaxwithmedia783
      @relaxwithmedia783 Před 3 lety

      @@camerondavis2012 You can download microsoft terminal or Windows PowerShell and take it from there you need to have a few programs to do this type of work

  • @hathumkittitus9663
    @hathumkittitus9663 Před 3 lety

    Thanksssss

  • @baturegarbabadamasi8187

    Hello man. i keep un recieving this error in truffle:
    Contract: simplestorage
    Should update data:
    TypeError: storage.UpdateData is not a function

  • @mrmocro
    @mrmocro Před 2 lety

  • @curator8265
    @curator8265 Před 3 lety

    In my MacBook Air M1, I started installing truffle with the help of npm. To avoid version issue I installed nvm. But what I see is, I have to write every time the ‘npm install-g truffle’ command to see truffle is installed!! I mean with every time I close the terminal and open a new terminal I need to write ‘npm install -g truffle to see truffle version in terminal!! This is madness and something wrong!!

    • @EatTheBlocks
      @EatTheBlocks  Před 3 lety

      This doesn't seem specific to Truffle, and more likely related to your npm install. Maybe that you need to change something in your .bashrc so that your terminal can find automatically the globally installed libraries upon restart.

    • @curator8265
      @curator8265 Před 3 lety

      Thanks for replying. Need to check further.

    • @curator8265
      @curator8265 Před 3 lety

      I am a first time Mac user, when we set the directory to start truffle operation in Windows, is there a similar way to set path in MacBook or it is not required?

  • @gregorystevens5173
    @gregorystevens5173 Před 3 lety

    Just curious, Julien, how do you define "Beginners"?

    • @EatTheBlocks
      @EatTheBlocks  Před 3 lety

      People who don't know Blockchain dev yet.

  • @romulogonzalez739
    @romulogonzalez739 Před 3 lety

    Hey, does the truffle compiler work with solidity 0.8, it takes too long, it doesn't compile , in the other hand when I use solidity 0.5 it does work .

    • @EatTheBlocks
      @EatTheBlocks  Před 3 lety

      Yes it does. Maybe a problem with your internet connexion.

    • @romulogonzalez739
      @romulogonzalez739 Před 3 lety

      @@EatTheBlocks thanks Julien you are the best , I think that could be the problem ,my internet connection is bad.

  • @philippalbrecht9023
    @philippalbrecht9023 Před 2 lety

    Hi I keep getting zsh: command not found: truffle

  • @ronyjoseph7868
    @ronyjoseph7868 Před 3 lety

    I stuck, that is I don't know the concept of using solidity contract in a js file

  • @gamerteen4153
    @gamerteen4153 Před 2 lety

    GOOD SO FAR until 22.10

  • @khangvutien2538
    @khangvutien2538 Před 3 lety

    Cool

  • @d2vin
    @d2vin Před 3 lety

    Hello, On my mac and I can't use the truffle command. I keep getting zsh: command not found: truffle
    can someone please help?

    • @relaxwithmedia783
      @relaxwithmedia783 Před 3 lety

      need to download npm and do and npm install -g truffle or something along the lines of that if not you may have to look up how to add truffle to environment variables

  • @cuzzigcuzi9901
    @cuzzigcuzi9901 Před rokem

    I like your video more than that diversity crap on CZcams thanks for the great walkthrough

  • @unrullEE
    @unrullEE Před 3 lety

    Can you make a tutorial on cloning a IDO like polkastarter

    • @EatTheBlocks
      @EatTheBlocks  Před 3 lety +1

      Good idea!

    • @unrullEE
      @unrullEE Před 3 lety

      @@EatTheBlocks thank you i was for help on how to build one but couldn't find it

  • @SwoleDjoe
    @SwoleDjoe Před 3 lety

    Can you do Truffle Vs Hardhat

  • @abeeralfaifi3806
    @abeeralfaifi3806 Před 2 lety

    When I try to install truffle, this error is appeare:
    'npm' is not recognized as an internal or external command,
    operable program or batch file.
    Does anyone know the solution?

  • @schwarzchauhan
    @schwarzchauhan Před rokem

    3:22

  • @zes7215
    @zes7215 Před 2 lety

    wrr, ts just toolx, no yesx oretc, nonerx

  • @benyaminlatifian3115
    @benyaminlatifian3115 Před 3 lety

    Thank you mr julian. Very good learn for guid.

  • @w3mct
    @w3mct Před 3 lety

    Cool