BS-Chain = BS on Blockchain

Inspiration

We started off with a medical application to be put on blockchain but came across a much more fun, much more crazy idea! What is this winning idea you ask? Let me explain. We know a lot of people that love to b.s. casually, so we wanted to build an app to hold them accountable. Thus BS Chain was born! BS Chain allows individuals to put their money where their mouth is, get rewarded in return and shame those who deserve it.

Hosted at: www.bs-chain.com "Lose more than just respect."

What it does

The web app allows a user to login with their Coinbase credentials, record their friend's BS arguments. The argument is recorded on the blockchain and a betting round is opened. Nearby friends can chime in and bet on the validity of the BS using an invite link. The fact is validated and the winning parties are rewarded with a handsome payout.

How we built it

Sukhpal I worked on the back end of the project creating the required endpoints and track the user data. I also worked with IBM Hyperledger to include blockchain technology.

Hussain I worked on the front-end of BS Chain. The sexy design you see in front of you is only made possible by yours truly. I used a Nodejs and Express backend for serving the client side Vue.js application. State of the application is handled using Vuex, a Flux based philosophy of managing application state. I also through the app on a t2.micro AWS instance and pointed the domain's A records to the webserver. Speech to text was also implemented using the new web Speech Recognition API.

Challenges we ran into

  1. Right of the bat, we found out on the Saturday morning that IBM Hyperledger had discontinued their Free Plan for Blockchain. After having to wrestle and deploy the required containers for ourselves, we finally got it up and running.
    1. Worked with SQL database like CockroachDB only once before. Setting it up reminded me of why I didn't like it initially.
  2. We also came across a few different bugs when working with the Coinbase merchant profile. After talking with the representatives from Coinbase, we were able to work our way through these challenges and successfully implement their API.
  3. The new Web Speech Recognition API doesn't have many examples around the web so it was tough to know if things were setup correctly, but after a bit of tinkering, the speech to text accuracy turned out to be pretty fantastic!!

Accomplishments that I'm proud of

  1. We got it done!
  2. Actually got CoinBase working after initially running into bugs like, "Please fill out Merchant Profile" even though there was nothing left to fill out.
  3. The sheer number of different views and states to manage for different kinds of users, using a client-side only implementation.

What we learned

  1. Always keep the idea small because during the weekend it will snowball and become huuuugely difficult to accomplish.
  2. Front-end design is noooot easy.
  3. The Web Speech Recognition API is freaking amazing!!

What's next for BS Chain

We are trying to extend it to support:

  1. More parallel bet sessions
  2. Ratio based payout system
  3. Add public viewing system (people that can watch but do not want to bet)
  4. Crowd sourced fact collection
  5. Rolling out our own ICO (BS Coin!)

Built With

Share this project:
×

Updates