Introduction to Scaffold-ETH 2 and ScaffoldBase
BuidlGuidl Talks · 4 Jun 2024 · 39:21
A BuidlGuidl presenter introduces BuidlGuidl, a Wyoming DAO focused on education, grants and tooling, and Scaffold-ETH 2, its open-source starter kit for decentralized apps. The workshop walks from cloning Scaffold-Base to writing and testing a Solidity contract, building a React front end with Scaffold hooks and components, deploying the contract to Base, and publishing the app to a live URL in about forty minutes.
Topics
From BuidlGuidl Talks, hosted by BuidlGuidl.
Transcript
we're going to talk about be building decentralized apps today I'm going to be actually giving this talk at dcon later today uh so I probably won't give the exact talk but the tldr is scaffold e 2 that's what we're going to be using that's the tool we're going to be using to build but zooming out for a second just to talk about the build Guild real quick there's lots of Swag there's t-shirts there's stickers all over the table uh build Guild is a Wyoming Dow uh we are basically just a multisig but we're efun fed and then the Dow uh funds all these different streaming contracts and we focus on kind of these three areas education grants and tooling so on the education side is speedrun ethereum uh after today if you haven't yet you should definitely go to speedrun
ethereum.org to take you through all of these focused challenges that will help you learn not just how to build on ethereum but what kinds of things you can build on ethereum uh Eda will go through the token vendor today which is kind of you deploy your own token but you also deploy this vending machine contract and you put your tokens in the contract and then it sells them at a certain price and then you can get in and withdraw the money back out of the the contract uh so that's speedrun ethereum you you'll go through and build an nft example a staking app a token vendor uh a dice game a deck and and this will it's going to force you to
write the code like it doesn't hold your hand and you can just copy paste stuff right you're going to get to a moment here where it's like you know you need to write a mapping and you need to uh have this threshold and it gives you some lines of code as an example but you have to write the smart contract so it really forces you to kind of understand what you're doing but it gives you tons of debugging uh so you can uh kind of understand and figure it out and then you'll create your own profile and we have like an auto grader that's going to grade all those challenges so uh that's that's the education wing then on a tooling Wing where we're going to be diving in today is scaffold eth it's kind of the starter kit for starter kit there's tons of starter kits now coming
out we're actually going to use this scaffold base starter kit today uh and yeah build building decentralized apps quickly so I I'll fly through this because I'm going to go through it slower in a little bit but uh there's two different ways you can clone down the repo or you can do npx create eth and npx create Das e is our like our oneliner that gives you like a Choose Your Own Adventure and this is where it lets you pick between for instance hard hat or Foundry and this is where our extension system is going to be pretty soon we're going to have things like the graph and a handful of different uh extensions and also starter kits for things like you know I want to build an nft Marketplace can I can I like start
with an existing nft Marketplace and extended we'll have a lot of those in this extension thing but you run it and then it gives you these commands you need to yarn chain yarn deploy yarn start which means you'll have like these three terminals it'll at the first time you do this it kind of feels like you're like launching a rocket because there's a lot of stuff going on but you need all of that locally right you need to have a local blockchain then you need to have a Dev server and then you'll deploy your contract to your blockchain and interact with it from your Dev server and this is what scaffold e looks like it has this nice debug contracts page we'll get in here and really poke at things in a little bit uh but here's an example so so I'm going to start writing a smart contract and
I'm going to add a beneficiary address and I'm going to add some function that lets me set the beneficiary if I'm the owner and then I'll come over to my front end once I've written that smart contract I'll come over to my front end and I'll test it out does it do the thing that I want it to do I can see that there's this beneficiary here I can see that there's this new set beneficiary I type in vitalic doeth and I hit send and sure enough vitalic becomes the beneficiary right this is the kind of thing where you write a little solidity you have a front end that helps you debug things you go through the front end and you make sure that it's doing what you think it's doing you can kind of test your assumptions I I have this bad guy here
uh we'll we we'll talk about burner wallets but you can quickly create different accounts and bang on your contract with those different accounts so in this case I create a contract who's not the owner and I try to set the beneficiary to to atg eth my address and it gives me an error it says not the owner right so I kind of test my contract out I say you know can the owner set this thing and then can someone who's not the owner set it make sure the happy path and the sad path work and eventually you want to write like more comprehensive tests for something that's going to be holding millions of dollars or something but at first we're just kind of like tinkering with solidity and trying to understand it so this helps us just test very lightly that the thing does what we want
it to do okay and then it's time to get into your front end uh notice we're on the Home tab now instead of the debug contracts tab from the Home tab you can start writing some react and uh we'll use these two hooks use scaffold read contract and use scaffold right contract and uh here's here's what it looks like you can even even see the tab completion coming up here basically I type function Name colon and as soon as I made that first quote it's like here are all the options that are in your smart contract so it's really nice the code is giving me hints about what's in the smart contract and so I'm just like basically doing tab completion here writing this so I write this stuff up here and this gives me the beneficiary in the front
end this is react code and then I have the beneficiary here printed out and when we print that out we see oh yeah there's the beneficiary's address now this is really ugly and scaffold e comes with a lot of components so we'll replace that with like a nice address component and then that's going to give us this nice you know ens name and Avatar and when you click this it takes you to the block Explorer on whatever Network you're on you can copy the address just nice little components that you'll need speaking of nice components there's an address input also where you can track some kind of state and update that state on change and then have a nice uh kind of that's what this looks like right where you see their address you see their blocky you see their ens
Avatar and their ens just really nice looking components that are three native and uh here's how you write to a contract so this is going to be a little bit different because uh the technology changes so fast that the syntax is actually different in brand new scaffold eth versus scaffold Base today we're going to be using scaffold base which is behind by two weeks or something like that but we're using wagy under the hood and wagy V2 just came out and so uh this will be a little different but it's very very close so this is used scaffold right contract right so we're setting up a contract writer and so now we have this write your contract and this is a object that lets us write to our
contract so inside a button inside the onclick we're going to write to the contract and we're going to call the set beneficiary to the new address so all this does is let us hit a button and it sends this new address to the smart contract to set the beneficiary so here we go we fill in atg doeth we hit set beneficiary and then the beneficiary updates to Austin griffithe so that that all works now so we've written our smart contract we've tinkered with our front end now it's time to deploy our contract we're going to do all this multiple times today so don't worry this is the fast the fast version I'll do a slow version in a second but what we need to do is we need to deploy the contract to a public
chain so to do that you need to yarn generate and yarn generate generates you uh an eoa uh what is an externally owned account it generates you an ethereum account that just lives in an EnV file that's ignored but what you'll do is you fund that with just enough money and then that account will deploy your contract to the live Network so I do a yarn generate to create that account and then I do a yarn deploy and then whatever Network I want to go to uh today we'll go to Bas but in this example I'm going to nosis uh and then you change one other thing there's a scaffold config and it changes your whole front end from being pointed at Local Host to then being pointed at nosis so uh in this case we've already
deployed our smart contract to nosis uh our app is now live on nosis even though it's on Local Host and I can go through and make these transactions live on nosis and then the final step yarn versel YOLO prod it's the coolest command but what that is going to do is push our front end out and give us a production URL so now my friends can go to this this long URL right here and they can use my dap so in in all of those steps basically we wrote a smart contract we tested that it did sort of what it needs to do we wrote a front end that lets people interact with that smart contract we deploy the smart contract to nosis then we deployed a uh app to a live URL that talks to that
smart contract and we're going to do that a couple times today but basically this is zero to one this is how you go from tinkering with an app to I have a URL that my users can go to and they can connect their wallet and they can make a transaction on my Smart contract and we're going to we're going to do that today and that's building decentralized apps and then uh kind of real quick the build Guild has these streams uh we stream eth two Builders and uh we're supported by the EF we have this build Guild Labs Eda and I and Carlos did this uh fun series and toward the bottom of this we started working on this cohort streaming contract and we kind of live built uh a new way
of sending grants and it's like these cohort streams and uh then we now are supporting Jesse's Hacker House and multiple different uh cohorts of people using these streams and we're all we also have this internal group that does all all the things like building scaffold eth building speedrun ethereum uh and and then we have all these other different cohort streams so so that's our grants arm we give lots of Grants we streamed 772 eth I think and so that's build Guild uh quickly just running through some other stuff um this is our back office app uh you can see recent builds you can see recent activity you can even see like stream withdraws and what
people are withdrawing from their stream for after someone goes through the speedrun we bring them into a build Guild batch and we uh have them join this Telegram and we do more Hands-On um onboarding and we kind of circle up around a repo and within that repo we teach you just kind of like Get get etiquette how do how do you make a PR how do you contribute to open source uh just like lots of little things to make sure that you as a builder know how to not just build on ethereum but build open source on ethereum and uh build Guild is open anybody who has joined the build Guild so all you have to do is go through the speedrun and you join the build Guild anybody who's in the build Guild can
qualify to to ask for a grant so anyone can just go to grants. build.com and say Hey I want a grant to do this and it'll pop up for us and we'll either hit EXA accept or reject or give you some notes and it'll send you some eth and that all uh works on chain some apps that have come out of this ABI ninja if you go to ai. Ninja really kind of very similar to what you'll see with scaffold e but this is a a way to interact with smart contracts uh by just posting in the ABI then we have hacked wallet recovery if you accidentally leak a seed phrase uh you can go to hacked wallet recovery and set up a flash Bots bundle and it will sweep your your cash out of your uh exposed wallet into a better wallet or
maybe you have some nft that's locked in there address vision is just a cool app that lets you quickly type in someone's address or ens and it gives you a bunch of information about them uh this is the Dow and you can tell that it's a multisig and who the owners are just lots of lots of nice little things okay punk wallet.io this uh I was thinking if if you need some base to deploy today and you probably will go to punk wallet.io and it will give you a wallet and then come up to me and I'll send you five bucks so if you go to punk wallet.io you'll get something that looks like this it's kind of an ugly QR code with a punk in the middle of it
kind of looks like this here and you've got a lot of networks over there on the left and then you have a lot of tokens over there on the right and this is just an quick and easy way it's a your your private key lives in local storage so it's very not secure like don't put more than $10 in here I have like 170 in this one it's not a good idea 313 in this one not a good idea but if you go to punk wallet.io and you come up to me later I will send you five bucks and then later on when you go to deploy your contract you can send that money into your deployer and deploy your contract from there so I can help fund you guys to get your contracts on chain okay coming soon all sorts of stuff from from scaffold
eth to uh we we're building an eth Dev Tech Tree build Guild nodes we want to get more nodes in more uh geographically diverse places build Guild V4 is going to come out and incentivize more building behaviors scaffold eth is going to be more extensible and we'll build lots of prototypes so yeah basically tell devs or if you're a Dev go speedrun ethereum that's the best way to get started and you're going to get started with that today we're going to hands on make sure you guys know how to build uh yeah and then so that's it okay now let's let's do it in slowmo let's instead of instead of going the fast mode uh let me go through and basically start with scaffold base so I think you guys have seen
this uh do do you guys all have this link or do we need to send that link out to to folks okay okay cool cool so so what I'm going to do is just start from scratch from here and I'm going to go through all the commands and you can also just follow along if you have this repo so it's if you just probably search for build Guild GitHub let's see what happens nope I don't want sand garden build yes so that will take you to build Guild and then within that if you search for base you should find scaffold base
yep there it is scaffold base right here so that's how you find it from Google but you should be able to hopefully like go to the notes and pull it down okay are we ready to get started anybody have any like questions so far or are you ready for me to like go through one step at a time and get your base uh set up get your scaffold set up all right good to go looks like food's getting here too I better hurry up and get I'll just get this started so you guys are ready to go and then we can kind of work on this so the goal is for all of you to be able to do what I'm about to do here so if there are things that you're concerned about definitely ask there's a small enough group here just ask the question and
we'll figure it out so uh I'm going to go grab the code and get started let's grab this so I'll do a get clone and then I'll paste that in and then I'll call this something what is this Biddle base camp and I'm just going to make like a little counter app today where you click a button and it increments a counter we'll do something very very simple and I'll make sure I put some events in it so Kevin can extend it if he wants to okay so now we're cloning down that's pretty fast internet's pretty good here all right we usually don't have great internet the fact that this is working is already great all right and then I'll jump in there bidle Das base camp counter and I'm just following the instructions here they're they're here
right here right I've oh get back here I've cloned I've cloned the repo down and now I'm going to CD into whatever the name is and then I'm going to run yarn install this is going to take a little time get a good drink break in here so now this at this point this might fail for you if you don't have yarn or maybe you have an old shitty version of node there could be a handful of reasons why this doesn't work but if you see this you're you've got everything you need okay we've yarn installed now I'm going to follow this next thing I'm going to yarn chain so I'm actually going to open up a new window which for some people it'll automatically CD into the directory but
if it doesn't make sure that you CD into the directory and then I'm going to yarn chain whoops what am I doing yarn chain and that's going to fire up a local blockchain for me thanks man so now I have a local blockchain and I can yarn deploy to it and this is going to deploy just my temp temporary smart contracts chle be kind of comes with this nice contract there we go so our contract is deployed to our local network and it's reading the greeding it's kind of a greeter contract and then there's one last command here and it's yarn start so I'll create another command line and I'll CD into my directory and I'll yarn start and that's going to bring up my front end and the
front end lets you interact with your contract if I hold on command I think I just click that yeah that's going to bring up this and this will be your front end there we go so the notice here that I kind of have my burner wallet in the top right there's some extra stuff here there's like a faucet for base and a faucet for the super chain this is this is basically scaffold eth with like 15 minutes of work done to it to make it more base native we add it in a a faucet uh there's little things like I can do a yarn fork and it's going to automatically Fork base instead of having the chain up I don't know if we'll get to that today possibly could be cool uh but really the the thing you
want to get to is this debug contracts page and then have your code editor up that this is kind of like the first the first really mil stone is the is to have we'll go into packages and I have hard hat but you may have Foundry depending on how you started this up and then I have contracts and then your contract so this is this is this this is where you want to be started right here where you you have your smart contract here and then you have scaffold eth over here letting you debug things so let's just make sure this is working I'm just going to create uh a quick U 256 public counter and I'm going to set
it equal to actually there might even oh there's already a total count whatever we we'll get rid of that in a second I'm going to start my counter at one right and I'm going to go ahead and yarn de deoy that to make sure it's working now watch this we should see over here we should see this new counter variable there it is okay so our new counter variable showed up and that's what we want to see and then let's write a function right let's create a function uh what do we want to call this Inc increment right and then there we go it just increments the counter plus one for some reason right now you're programming money so a lot of times you're going to be doing interesting things where someone calls a function and money comes in and you send 10% over
here and then 90% over here and it's locked up for a certain amount of time that's like a usual the usual thing you would build with a smart contract but we're just going to do something stupid where we just have a little counter and it just shows you how to increment that that counter just simple State uh but remember you're programming money you're programming around incentives you're creating this thing that not even you can destroy or stop so there's a lot more powerful stuff here but we're just going to make a counter and it's just simple but I promise this is world changing technology so don't get thrown off by the the simple counter okay so hopefully now we have a counter over here and an increment function here now if I hit send it's going to say hey you
don't have any money and that's why I need to go up here to this little dollar sign button here and that's going to give me some money from the faucet in fact it's going to give me like 3,000 wow that's a little higher than it was yesterday $3,600 right there okay but that's fake test net money all of this is local but this is really nice because you can play around with your own local blockchain and you can Tinker with things and see how things work so uh yeah does our counter work let's see what happens when I hit increment here yeah yeah see our counter over here it's working right can I zoom in a little bit oh not too far yep so as I hit increment our counter goes up now of course you probably building incentives
and mechanisms and all sorts of stuff into your smart contract and it's splitting money or storing money or locking it up for a certain amount of time but let's just pretend like this is all we want to do is just build this little counter and I'm going to go ahead and delete everything else actually I need an event because Kevin is going to do some uh graph stuff so let me bring this that's why this contract has all this stuff in it because you can like grab some of these things that you might need uh yeah okay so let's put an event in here real quick uh let's see I'm going to create an event called incremented that's a weird and then
they'll have some address that that did it who did it and then maybe like what the value of it is or something like that I don't know and then uh in here we will Emit and don't worry if this syntax is weird um you you'll get the syntax eventually but we're just going to emit an event along with this and that helps you uh with your front end and offchain storage and I'm going to delete all the other stuff here so this is our whole smart contract I'm even going to get rid of this console log there we go let's see if this compiles and deploys uhoh oh no I know what's going
on I'm sending in uh deployment here so there's a in this deploy folder there's a deploy script and in the deploy script it's passing in this argument to my Constructor and I don't need that so I'm going to get in and delete that real quick that should fix whatever this problem was nope there's some other problem going on let's see oh I I think there's actually some stuff down here that I want to comment out too whoa there we go okay so now I've grossly simplified my smart contract there's only just this counter there's only an increment button the increment button
works okay so in real life you will spend days if not weeks working on your smart contract I spent 10 minutes and we're going to pretend like it's good we're going to pretend like it's the a new Financial mechanism but really it's just a counter on chain uh but once you finish writing your smart contract then it's time to move on to your front end and you'll spend even more time writing react than you will probably writing solidity but we're going to move over to this Home tab now and we're going to edit this this front end and we're going to write a little bit of react so I'm going to close up my smart contract I'm just going to assume the smart contract is good to go and I'm going to move over into front end Lan and I'm going to go to my app and my
page so nextjs app page is where uh this content lives and I'm just going to trash almost all of this stuff let me zoom out a little bit so I can see it here probably about there there uh oh maybe I'm missing one slashiv deleted one too many there we go we're happy okay so I just cleaned it down to this code and you can see it here uh now it's pretty simple to see let me get rid of some of this stuff here it's pretty simple to see we have
we're using use account this is a a wag me hook and you can do things like wag me use account and it's going to give you the exact you know here's here's how to use wag me you you import it and then you do something like uh use account uh where is it yeah account equals use account and then you can get in there and do account dot things we're going to take the address and we're going to rename it to Connected address and that's what shows here right and that's what we see in the
front end we're just showing who the person is that's connected so far and if I dis connect that and I connect my metamask okay let's try that again yes okay and it's going to have a switch our network over to Local Host and I can even fund my my metamask account and if I go try to make some uh action with my metamask account it should pop it up there we go this all looks good and confirm whatever yeah I don't know the internal error because of metamask not because of anything we're doing I think okay so uh let's go back to our front end we can see that I'm
connected okay let's let's write some um some code here let's write some front end so what we want to do first is read the count from our counter so we're going to do const and we're going to do use scaffold read contract and this may be use scaffold contract read They're they're kind of uh it it depends on which version of scaffold eth you're using uh the newest version of scaffold eth is use scaffold read contract I think the later versions are contract read this one uh I'm not sure if I have the right one here oh yeah it's used SC looks like it's coming
in well we'll find out in a second so we want to read the contract and then that's going to be uh an object and in that object is going to be the contract name and it's going to autof that see that it's like your contract like it knows my contract because it can see it already and then we've got uh a function name notice I'm not even typing anything I'm just tab completing everything because the it knows about it already and there's no args okay and then this is going to give me back some kind of data and I'm going to rename that data to counter Okay so that's it that's this
this chunk of code right here is going to read from the contract constantly be reading from the contract and keeping this value of counter in our front end that we can use anywhere and then let's just go ahead and display that somewhere let me steal this and we'll say counter and then we'll do counter let's see what happens here it might be mad at us we might need to like yeah it doesn't like that I think it needs to be like dot two string maybe let's try that okay it's happy about that there we go and the counter is three okay so there we go it shows up in our front end
and if I go over here let me get out of back to the burner wallet and then hit increment a couple more times and do we see it over here yeah okay the counter is at five now okay so we're able to read from our smart contract now we want to write to our smart contract that's going to be a little bit different uh we will use scaffold write contract okay and then this case I think it's just your contract name your contract okay and then this will give us a what like write async and we'll rename this to
uh maybe write your contract so we have this nice your contract writer and then we need to make a button down here let's grab this div and make a new [Music] button and then inside of that button we'll say ink and then maybe have like an onclick of the button and we just need a function in here that does something right uh right now let's just alert Inc there we go looks great whoa this is a placeholder sure do we have our button now oh it doesn't look
like a button let's make it look like a button uh that we're using tailwind and Daisy UI but what I want to do is do class name button buttton primary there we go now looks like a button and when I hit it it doesn't do anything yet it gives us this long alert but we're very close so we have this right contract object that we loaded up pointing at your contract and then we're down here we're going to actually call it's going to be right contract and then this is an object that comes in here I think yes function name yep and we're going to call increment and there's
going to be no args here we go that might actually work let's see what happens yeah yeah it's working right the counter is incrementing when we hit the button and we're making onchain transactions Okay so we've written our smart contract we've tinkered around with it it's just a simple counter right now now we've written some front end we have we're able to read stuff from our contract into our front end and we're able to write stuff back to the contract contract thanks to this button click using using these two hooks up here use scaffold read contract and use scaffold contract use scaffold right contract all
right now I think we're ready to go I think let's pretend like this is what we want to build is a counter with a button and let's go ahead and ship this thing to production uh so you remember in my quick demo we had to do that yarn generate command and you'll find this uh in the the the code here when you're ready to deploy to base oh here's a here's a this yarn deploy reset this is a this is a good little trick here if I do a yarn deploy again watch out because it's going to say reusing your contract and I'm not going to get a new contract so if I wanted to like prove that this is working and reset my counter if I do
a yarn deploy over here it does not reset my counter my counter stays at 10 because it keeps reusing it when you're debugging locally that might get frustrating you'll do a yarn deploy and just add a D- reset to that now watch what happens over here we're going to get a new smart contract there we go see a new smart contract and it resets let me do that again yarn deploy reset let's see a new smart contract show up here and a new counter one more time brand new smart contract at a new address yep and then our counter so that's just D- reset it's a handy little thing it's in the the readme uh but now we're ready let's deploy this thing all the way to base okay so I'm going to do a yarn generate and that's going to create a
local deployer account and then I'll do yarn account and I think that's there uh yep that's the next line but it gives me this nice QR code this is where your punk wallet comes into play open up your punk wallet set it to Bas and then uh hit the little scanner button and scan that QR code and then I'm going to send in $1 if this costs more than $1 we'll have to figure something else out it shouldn't yeah yeah I mean I've deployed contracts and had them cost $20 I've deployed contracts and had it cost two cents yeah if it's it was right during inscriptions I think when it was very expensive yeah but now it should be like two cents and we're going to see in just a second so now we have this one
liner here yarn deploy Network base I'm assuming my account has here we can even do this yarn account again and we can see it oh it doesn't it it should definitely have uh did I forget to hit send o it's like still sending uhoh let's try it one more time keep an eye oh no oh no don't generate hopefully it didn't generate let's see yeah okay there and it has base now right okay cool what happens if I yarn generate a second time I feel like let me let me run that again it should say something like you already have an account yes okay good it does so I could run that a million times and it's still
just going to keep my one account as we can see from yarn account we have money in our deployer so we're ready to go uh yarn deploy just like you normally would but we're going to add this extra Network flag so we're going to do yarn deploy D- Network base and here we go we're paying real money to deploy a real smart contract to a real Network let's see if this works mhm okay so our contract is deployed live if we were to go take this address and go to base scan we would see that there's a smart contract there but we need to do one other thing we need to update our Network so if we
go look at our app right now it's still pointed at hard hat okay so our app technically doesn't even know about that smart contract we deployed yet because we're on the wrong Network you need to open up I'm going to do open Apple p and I'm going type in scaffold and that's going to open up the scaffold config I just went and found it normally you could just go to nextjs scaffold config and this is your configuration this is going to control uh how your app works and I'm going to change a few things that you don't need to worry about but I'm going to allow burner wallets and production that's a bad idea I'm going to speed up my pulling interval I don't even know if it does anything uh but the most important thing is this right here this is the
target Network this is what our app is pointed at but it's super powerful because we can make one change I can say chains. Bas and I can hit save and the whole app switches over to base now every single one of those little addresses now we'll go to Bas scan and this address right here is the contract we deployed 2 E3 right so and and watch what happens when I click this any any address opponent component anywhere is now going to go to base scan right because we switched our app to Bas so now we have our working app on base and I'm going to spend real money here here let me
actually connect my uh metamask now and and to get lunch you're GNA have to go to this URL and increment the counter by one so you can get fed just kidding just kidding you don't have to do that and let's see if I hit in increment here this should be a real transaction on base it's going to cost me how much a a cent it's going to cost me one penny and I'm going to increment our counter on mainnet base and it incremented to two Okay so we've we've written our smart contract we've tested it and tinkered around with the the debug tab we've built out a front end we've deployed our contract base we've
pointed our app at the contract on base now we have one last step and that's putting our app at a live URL and to do that you do yarn verel YOLO d-r and it'll ask me some questions about what I want to set up uh let's see set up and deploy like yes I think yes no no Bui bidle base yes no okay this will take a couple of minutes but what this is going to do is it's going to package up our app it's
going to deploy it to a live URL and then I could share that live URL with you guys maybe I'll put it in a QR code you can shoot it with your phone connect your wallet and increment the the counter and talk to it so that's the that's the full zero to one we went from cloning the repo to writing the contract to testing it to building the front end to deploying to deploying the app and all of that took like 40 minutes or something like that so this this will hopefully help you get started the next step is for all of you guys to do some of these steps get get get to the point where you can Tinker with your contract and feel confident with with building these things and then you're off to the races with building your own app we'll
have to wait a little bit longer for this so yeah in 40 minutes we were able to pull down scaffold base we were able to build a smart contract we were able to test it we were able to build a front end then we uh deployed our contract to base and then we deployed our app to versel and now we have a live app on versel that lets anyone go here and increment a counter for some reason it's your job to create the cool smart contracts I'm just giving you a a good starter kit here
Related talks
- Cómo desarrollar aplicaciones en Ethereum 🚀 | Demo en vivo con SE2, BuidlGuidl y SpeedRunEthereum
- 🏗️ Construye una dApp en Ethereum desde 0
- Scaffold ETH 2 - Extensions Development Guide
- Build Your First ZK App with Noir
- Building on Ethereum in the AI Era
- Austin Griffith I Beginners Track Welcome & Speedrun Ethereum Introduction I ETHGlobal Prague 2025
- BuidlGuidl - Build Your first five apps on Ethereum
- Solidity 101 in Turkish: Updraft Study Session, Part 1
- Ethereum Foundation: Web2 dev to Web3 dev with 🏗scaffold-eth with Austin Griffith
