Skip to content

ltungv/poll.rs

Repository files navigation

Poll.rs

A simple web-application for electing the best option using the instant-runoff voting system.

register and vote example

Features

No need for serious security and users are allowed to change their rankings.

  • Each user is assigned an UUID after they register.
  • The UUID can later be used to access existing rankings.
  • Users' account has no password.
  • Users' session is kept in cookie.

Tech stack

Some initial state

insert into items(title, content) values
	('Ada Lovelace', 'Augusta Ada King, Countess of Lovelace was an English mathematician and writer.'),
	('Alan Turing', 'Alan Mathison Turing OBE FRS was an English mathematician, computer scientist, logician, cryptanalyst, philosopher, and theoretical biologist.');