a28a8ccacb3c91c843dbba2192778756b6a44391
Changed the way we register a prize for winner. Now we have a new prize_selected boolean field on a winner. This is used to filter on when finding what winners have not selected a prize yet. This also replaces the previous method of removing virtualWinners after they selected a prize. PrelotteryWine also get's a winner reference. This is used to filter on when finding what prizes are left, and also makes it easier to archive/register a lottery when the wine has a winner attached.
Vinlottis 🍾
Vinlottis is the unofficial website for Knowit's wine-lottery, usually happening every friday at around 15:00.
Prerequisites
mongodb
nodejs
npm
Run dev
Since the backend and API runs separate from the Vue-on-save-compiler, when running the dev-server, the backend needs to be run separate
$ npm run dev
$ node server.js
Run prod
$ npm run build && node server.js
Description
Languages
Vue
55.5%
JavaScript
39.4%
SCSS
3.9%
CSS
0.6%
HTML
0.6%