Relative Content

Tag Archive for mongodb

What is the recommended MongoDB schema for this quiz-engine scenario?

I’m working on a quiz engine for learning a foreign language. The engine shows users four images simultaneously and then plays an audio file. The user has to match the audio to the correct image. Below is my MongoDB document structure. Each document consists of an image file reference and an array of references to audio files that match that image. To generate a quiz instance I select four documents at random, show the images and then play one audio file from the four documents at random.

Node.js API Architecture

I am currently working on a web app and want to design the interface between nodejs / mongoose and the backbone app.