THIS IS CURRENTLY A WORK IN PROGRESS
The web app for professional "Wichtel".
This web app is a quick fix to handle out "Secret Santa" list creation process.
- run
nvm use && yarn
- run
yarn start
to run the app locally (http://localhost:3000)
This app can be deployed on github pages:
yarn deploy
NOTE:
This will not work out of the box for you, since it is configured for my github account.
You will need to adjust the homepage
in your package.json
if you want to deploy it on your own github page.
This is the current plan but may (and will) change along the way. It's just a place to accumulate my first ideas.
This app should be a simple (ish) solution and I want to be able to host it on github pages. Therefore it will only be a React app without a database in the background. This does have some implications:
- We cannot save anything on a server
- Generated links (e.g. the ones we send to the participants to let them know who is their "target") must contain all the necessary information
- We have to trust the person creating the list (since they have all the information)
- The list creator (Charly) opens the app and creates a new list:
- Generate a secret (can happen in background)
- Charly adds the participants
- the app picks random targets for everyone
- the app creates a link for every participant
- The Charly sends the links to the participants
- each participant clicks on their link and sees their target
- This app does not save any user data
- The creator of the list could cheat and check who got whom
- The creator of the list could generate the list again and again until they get the list they want
- The creator of the list can generate any links they want or send everyone the same link (so everyone will have to buy a present for the creator for example)
- The participants can only see their own target
- The parameters in the link are "encoded" (the key is not a secret), so it is not obvious what it says
- Allow blacklisting (e.g. Peter should not get Mary)