DEV Community

Niladri Shekhar Dutt
Niladri Shekhar Dutt

Posted on

Build a decentralized friendly betting platform

GitHub repository : https://github.com/niladridutt/bet.cy
[Won the 2nd runners up award at SF Hacks 2019 (Major League Hacking)]

Inspiration
How many times your friend has made a bet with you and never really came through?

What it does
It helps you to easily create an immutable bet between you and your friend with a wager as a Macy's Product using Amazon Alexa.

How we built it
We built a skill for amazon Alexa using their developer console and used amazon lambda services to deploy it and seamlessly connect it with the web server. We used smart contracts to create an immutable bet between two friends having Macy's products as a wager. We used Macy's catalog-services-api to achieve the same. The web-app is made with vue.js for frontend and we used node.js for backend and integrating it with the ethereum framework.

Some of the challenges we ran into were:

  • Deploying it on amazon Alexa and integrating it with the frontend.
  • Working with web3.js on a vue.js component.
  • Bypassing cross-origin resource sharing for HTTP request via XHR.

Accomplishments that we're proud of
Ability to deploy smart contracts on an ethereum testnet just using Alexa voice commands.

What we learned
While the individual components work perfectly on their own, integrating it and bringing together the product as a whole is a huge challenge.

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.