Our application will be a simple one. A user will be able to bet ethers on a number between 1 and 10. When the user guesses correctly he gets his payout x10 (minus the cut for the house).
In this first part we will go over our project setup and the creation of our smart contract. In the second part we’ll introduce the web3js API and VueJS/Vuex and in part three we’ll connect the dots and connect our application to our contract. Follow along, enjoy the ride, it’s gonna be great.
Here’s what our final application will look like: