Skip to content

jarnoln/wtgfl-vue3-ts

Repository files navigation

Where To Go For Lunch

“The History of every major Galactic Civilization tends to pass through three distinct and recognizable phases, those of Survival, Inquiry and Sophistication, otherwise known as the How, Why, and Where phases.

For instance, the first phase is characterized by the question 'How can we eat?' the second by the question 'Why do we eat?' and the third by the question 'Where shall we have lunch?”

― Douglas Adams, The Restaurant at the End of the Universe

The last one is the most difficult one since it needs to be answered every day and often you don't want to have the same answer every day.

It is especially difficult if you are in a group of people trying to decide together where to have lunch and everyone has their own preferences.

As it seems to be fashionable nowadays to solve life's problems with apps, here is one to solve this particular problem (though I suppose it would be possible to use this to solve also any other issue where a group of people need to make some common decision).

Everyone gets to list their preferences and this will magically(*) pick the one that is most fair for everyone.

(*) Actually it is using one of several supported election methods. The method can be changed from settings.

Here is how it works:

  • Pick your favorite option by clicking available choices in order of preference
  • If your favorite is among availabe choices, you can add manually
  • You can keep adding and changing your list until you are happy with and press "Cast vote"
  • Then others will make their own lists and cast their votes
  • After everyone has casted their vote, they are counted and winner is declared (or winners in case of tie and there is no tie-breaker)

Supported election methods

Technicalities

  • Vue 3 and TypeScript

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

About

Vue3 + TypeScript version of WTGFL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published