Skip to content

Instantly share code, notes, and snippets.

@prestonp
Created June 1, 2015 16:13
Show Gist options
  • Save prestonp/671bbfa1317c4be456b8 to your computer and use it in GitHub Desktop.
Save prestonp/671bbfa1317c4be456b8 to your computer and use it in GitHub Desktop.
  • Poll schema uses string for results, how could we improve on this? Also the following request allows me to completely change the results
curl -H 'Content-Type: application/json' -X PUT -d '{ "results":  ["32", "2", "5", "0"] }' http://localhost:9000/api/polls/556c8129bf64e30727806aeb
  • socket io is used but the poll is updated not real time. Suppose I vote and leave the tab open with the results. The results should get updated as others are voting. What steps would be taken in order to push updates?
  • Were there any challenges in putting the project together?
  • What would you change or improve on? What other things would you like to work on if you had more time?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment