Build a Bike Rental App in Solidity on the Binance Smart Chain

  Рет қаралды 8,114

Travis Media

Travis Media

Күн бұрын

Пікірлер: 28
@TravisMedia
@TravisMedia 2 жыл бұрын
The full course is live at geni.us/GGTRi0p
@demiann4160
@demiann4160 2 жыл бұрын
Jumped into several web3-related channels. None have explained it as well as you. Thanks!
@salmanabdulaziz7552
@salmanabdulaziz7552 2 жыл бұрын
Travis you made Blockchain to understand like Nursery rhymes. Great way to let us learning . Instrumental in making career in blockchain.
@pil_low
@pil_low 2 жыл бұрын
Travis, bro you are so great. Please bring more courses. It's easy to follow up your contents. Thank you.
@Nicogs
@Nicogs 2 жыл бұрын
Thank you Travis! After giving up on Solidity a few months ago, back in the game after this tutorial. Simple, clear with a perfect project based exercise. I was wondering if there is a way (because it is still a smart-contract) to have someone deposit funds first for X amount of time and when timespan is bigger than X it returns the bike so that someone can't rent a bike for ever without ever turning it back? You should create more Solidity tutorials 🙆‍♂ you got yourself a new subscriber!
@moteteletsa2034
@moteteletsa2034 2 жыл бұрын
Suppose I want to see a list os renters, or count a number of renters. How do I do that?
@satyendrakumar3319
@satyendrakumar3319 2 жыл бұрын
Hi Travis I don't have any programming experience can I learn it
@AdilAli-lo7dq
@AdilAli-lo7dq 2 жыл бұрын
Wouldn't be surprised if this guy identified as a goat🐐🔥
@AdilAli-lo7dq
@AdilAli-lo7dq 2 жыл бұрын
when is the front-end part of this project dropping ?
@TravisMedia
@TravisMedia 2 жыл бұрын
Later next week the course will go live. Took me a little longer than expected.
@pankajjoshi8292
@pankajjoshi8292 2 жыл бұрын
Adil Ali did u got Front End part. If so pls let me know I am doing my Final year Bachelor Project on This. Thank you
@newborn7850
@newborn7850 2 жыл бұрын
Hey guys did u got front end.
@mrshephu
@mrshephu 2 жыл бұрын
thanku travis where we can find the front end
@TravisMedia
@TravisMedia 2 жыл бұрын
travis.media/courses
@MrSamay10
@MrSamay10 10 ай бұрын
I took your subscription . for web3 development but your video is not very smooth its stuck i email many times but no one is responding . pls work on this
@gobindapaul8506
@gobindapaul8506 2 жыл бұрын
Can you make a simple bot with solidity for understanding how bot work
@maheshbabusurepalli653
@maheshbabusurepalli653 2 жыл бұрын
Thank you so much for the video, sir. Due is deducting twice from the wallet. The first time is while depositing ETH/BNB to the contract, the second time is while making the payment. Actually, while making the payment due should deduct from the deposited ETH/BNB. But, it is deducting again from my own wallet. Please correct me if there is anything wrong with my understanding.
@TravisMedia
@TravisMedia 2 жыл бұрын
Hi Mahesh!. So when you deposit, it deposits to the smart contract balance, but it also credits the balance of the person depositing. If only I have deposited and I deposit $10, then the smart contract in total will have $10 AND that $10 will be allotted to my balance. So all $10 in the smart contract belongs to me. If I spend $8, then $8 is deducted from my balance. Nothing changes in the total on the smart contract, but NOW only $2 of the balance is mine. The other $8 now belongs to the owner of the contract. One thing I didn't include is a function for the owner to be able to withdraw regularly the amount that is his/hers after transactions are made. Could add that functionality if you desire. Please let me know if that helps clarify.
@maheshbabusurepalli653
@maheshbabusurepalli653 2 жыл бұрын
For making the payment function we are using a payable modifier. So if you spend 8$. along with a deduction from your balance. 8$ more dollars will be added to the small contract. That means we are paying due twice right??
@TravisMedia
@TravisMedia 2 жыл бұрын
@@maheshbabusurepalli653 Actually, you are exactly right. It's an oversight on my part, thanks for pointing it out. The fix is to update the makePayment function: 1. Remove payable 2. add a parameter of uint amount 3. change the two occurences of msg.value to amount 4. Then on the front end when calling this function we would need to pass in, converted to Wei format, the amount you are paying in addition to the walletAddress. This has been addressed in the upcoming course for this. Thanks again!
@dineshrambabukushwaha4757
@dineshrambabukushwaha4757 2 жыл бұрын
@@TravisMedia Instead of adding another uint amount paramter, can we directly deduct from the balance param which is the amount stored in the bike Rental app in the initial deposit ? Bikers[walletAddress].balance -= Bikers[walletAddress].due;
@dineshrambabukushwaha4757
@dineshrambabukushwaha4757 2 жыл бұрын
@Travis Media is it correct way ?
@nanonkay5669
@nanonkay5669 2 жыл бұрын
Why didn't you just make the rate 0.001 per minute? Isn't that the same thing without all the extra math to do in between?
@newborn7850
@newborn7850 2 жыл бұрын
Front end pls. Thank you sir
@TravisMedia
@TravisMedia 2 жыл бұрын
The full course is live at courses.travis.media
@pankajjoshi8292
@pankajjoshi8292 2 жыл бұрын
Frontend pls ? Waiting
@TravisMedia
@TravisMedia 2 жыл бұрын
courses.travis.media
@dsplnplnvt3257
@dsplnplnvt3257 Жыл бұрын
👋🦾
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
What’s Up with Laravel? It’s Everywhere, and Here’s Why!
6:22
Need a Solid Web3 Project For Your Portfolio? Here you go...
9:15
Build Your First Blockchain App Using Ethereum Smart Contracts and Solidity
1:31:07
Deploy a Simple NFT in Solidity | [See Description\
9:36
Patrick Collins
Рет қаралды 98 М.
"Junior developers can't think anymore..."
13:53
Travis Media
Рет қаралды 58 М.
The differences between AVERAGE and EXCEPTIONAL developers
11:24
Travis Media
Рет қаралды 11 М.
AI WIll Make Us ALL Dumb!...Unless
9:46
Travis Media
Рет қаралды 12 М.
Smart contracts - Simply Explained
4:17
Simply Explained
Рет қаралды 1,8 МЛН
Deploy Solidity Smart Contracts with Ganache Personal Blockchain
8:12
MammothInteractive
Рет қаралды 51 М.
4 VS Code Extensions REQUIRED For Blockchain Development
5:26
EatTheBlocks
Рет қаралды 44 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН