hack3r-0m / bvs-tpw-hackathon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bvs-tpw-hackathon

This is hack built for "the python week" hackathon.

check it live at https://bvs.omparikh.me

check this roadmap for design

TIMELINE: (all times are in IST)

  • started researching and disvoering about sponsors of TPW(14:00 8th jan)
  • Selected problem statement and tech stack (16:44 8th jan)
  • Reading documentation of web3, portis and Parse server REST api (21:20 8th jan)
  • started creating design map and work flow (22:55 8th jan)
  • setting up development env and webserver (11:03 9th jan)
  • Building, Editing, Testing, Debugging (since 13:10 9th jan to 10:52 10th jan)
  • Submitting links, video and other required things (11:00 10th jan)

RESOURCES, STACK AND NOTABLE MENTIONS:

  • VPS by linode
  • domain by namecheap
  • dashboard and database by sashiDo
  • End to End user interaction with blockchan network by Portis
  • design map made via lucid
  • web3 and portis docs
  • Node, Express, bootstrap, web3, cron, python3

TODO :

  • Improve UI (replace bootstrap with react)
  • Voting candidates are hardcoded and limited to only two, make it dynamic by adding smart contract in contracts/
  • Prettify logs and statiscs
  • add: candiate can cast only one vote
  • write tests
  • shift to pm2 (done)
  • shift from ropsten testnet to mainnet

OTHER APP DETIALS;

  • in video demonstration transaction could not be completed because i haven't received test ether (transaction is still not confimed, takes about 3-24 hours) yet, but as it is handled by portis, it is working.
  • /statistics show current gas price to predict confirmation timing and other such data
  • /logs show access history
  • statistics are updated every 3 hours via python cron job
  • site might be slow because its currently unoptimized and running over 512 mb vps

HOW TO CLONE THIS REPO:

  • change portis dApp ID
  • add api keys of sashiDo and ethgasstation in portis.js index.js and update.py
  • run node index.js

About


Languages

Language:JavaScript 56.5%Language:HTML 33.8%Language:Python 5.5%Language:CSS 4.3%