Skip to content

pazuzu111/dev-ote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dev-ote

happy hour voting app, click on bar for info on bars happy hours, click vote, sit back and watch the votes increment in real time

stack

  • express server
  • react front end deployed to surge
  • self created api pushed to heroku

screen shot 2017-12-28 at 12 14 28 am screen shot 2017-12-28 at 12 14 37 am

still working on additions

  • bar graph for results

inner workings

  1. user lands on page
  2. browser makes request to external api to receive infomation about bars(mayb take a few seconds data to be sent back due to heroku app not being used so much, so the dyno falls a sleep and becomes slow with a response
  3. when user clicks on vote, they make a put request to update the number of votes a bar has
  4. server responds with new incremented value