Giter Club home page Giter Club logo

doubleblind-server's Introduction

How it works

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 votes

  • 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

Experiment ends

  • 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

gordjw avatar

Watchers

 avatar

doubleblind-server's Issues

Start testing the models

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

  • Create the mock data
  • Write the test cases on the models

Experiment.All needs to include Options (and Participants)

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

  • Experiment.All includes Options when returned

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.