Require GUI interface that will display the ‘body’ field of a JSON collection in an iFrame (or other). The ‘body’, text, can be randomly selected (if user selects the ALL radio button to the left of the diagram) between 3 mongo collections (colA, colB, colC) that reside in a mongo database (myData) or if the user selects a specific collection, the ‘body’ will always be randomly selected from the selected collection via the respective radio button. When a collection is manually selected or randomly selected, the program needs to randomly select the body of the ‘first’ N JSON records (.limit(N)) random of the first N records, but provide a user input variable called limit (N) to allow a choice to limit it by a user specified limit count N (please default it to 100 if user does NOT select a custom count). The body needs to be displayed on a web page, and a rating system needs to reside below the body. The rating system will consist of 6 choices: 1-Very Good, 2-Good, 3-OK, 4-Bad, 5-Very Bad, 6-NA. For each record that is voted on, the record needs to be updated where the field called opinion (opinion will have 6 sub-fields, very good, good, ok, bad, very bad and N/A) which must track the number of votes made on each possible choice. Once a user votes, the page is auto refreshed with a record from a random collection and a random record within the randomly chosen record.
Please refer to the attached diagram, [url removed, login to view] for a visual