View Code? Open in Web Editor
NEW
Go backend to handle requests from doubleblind-client
doubleblind-server's Introduction
New Experiment is received
Create Experiment
Experiment has between 2-4 options
Experiment may have 0-1 votes (if the creator already voted)
Experiment has an end date/time
Experiment is shared with someone
Creator enters a person's email address
Add the person as a Participant (?) on the Experiment
Experiments can't close until all Participants have completed
Send an email to the Participant
Participant uses link to create a session.
There are no accounts (usernames/passwords) but all Experiments are forever associated with a set of Persons
Particpant chooses one of the 2-4 options
Participant can't see the outcome until Experiment closes
All Ps have voted, or E time has passed
All Participants have voted
Experiment end time has passed
Calculate the outcome
If an option has received the most votes, it wins
In the event of a tie, flip a coin!
Notify everyone
doubleblind-server's People
Contributors
Watchers
doubleblind-server's Issues
Background
Part of the reason for writing the sql connection pooling as an injected dependency is so that I can mock up and test.
To-do
Context
At the moment Experiment.All() just returns the actual experiment data. It can only fill out some of the Experiment type, and isn't good enough for the final app. It needs to be completely fleshed out.
To-do