group14-final-submission#9
Conversation
|
An important topic, and I'm glad that you're tackling it. Figuring out how you want to store / process the data on the server will be an interesting challenge. On the one hand, it probably makes sense to organize using one document = one client session. On the other hand, that means every time you want to calculate statistic you'd have to load in every document in the databases in order to access the answers from each user/subject. Given that you'll probably mostly be running basic statistics on the data, you might be able to have mongodb calculate these on the fly for you, perhaps using something like reduce or accumulators(probably better). Otherwise, you could perform the required calculations after each submission and write the JS code to do it in node but I don't think this would scale well in the "real world", as there would be a lot of communication back and forth between the server. Keep me posted on how you decide to tackle this problem! |
Initial Project Structure
Website: https://group-14-final-project-2nrny.ondigitalocean.app/
Demo Video: https://www.youtube.com/watch?v=X7JrgC3JO-w