Half baked thoughts with more to come.
This application illustrates using mongodb's GridStore through mongoose to store files in mongodb's GridFS.
An interesting addition is that when files are downloaded they are streamed from mongodb rather than loading the whole file into memory at once.
Install the dependencies by typing
npm install .
And run it via coffee by typing
From the root of the project: