a simple poll service powered by Ruby, Sinatra and SQLite
Go to file
byte-chan™ deeba9420f Fix /delete not deleting answers 2018-03-13 09:54:19 +01:00
README.md Initial commit (v1.2) 2018-03-12 08:08:53 +01:00
createdb.rb Initial commit (v1.2) 2018-03-12 08:08:53 +01:00
favicon.png Initial commit (v1.2) 2018-03-12 08:08:53 +01:00
server.rb Code cleanup (#1) 2018-03-13 09:52:19 +01:00
sql.rb Fix /delete not deleting answers 2018-03-13 09:54:19 +01:00

README.md

simplePoll

simplePoll is a simple poll service powered by Ruby, Sinatra and SQLite. Static files are loaded into memory to improve performance. Using advanced IP address technology, users can only submit one answer for polls.

simplePoll also offers a simple API for poll information in JSON format:

/api/<question_id> => {
  "id": question_id,
  "text": "Question text",
  "answers": [
    {
      "id": answer_id,
      "text": "Answer 1",
      "count": 3
    },
    {
      "id": answer_id,
      "text": "Answer 2"
      "count": 37547821
    }
  ]
}