Now that we have the foundation laid, we need to create some means of handling data, which will naturally be handled by Backbone’s
Collection classes. We’ll keep all the data in its own separate module. This isn’t necessary, but I like how it makes initialization work. You could also just place all of the data in a namespace on
QuizEngine instead of bloating it with all of the features that come with a Marionette
Module that won’t be used. I’ve heard of some developers putting all of their data in an
Entities namespace, which is probably a good name for it, but I’m sticking with the simple “Data” name as a module.
Since this is going to be a module, we’ll first add a folder for it in the js/modules ...