Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
CoffeeScript JavaScript
Branch: master

Merge pull request #1 from sivang/master

This fixes the surprising typos I found and makes this actually work OOTB.
latest commit ad8ec51808
@jamescarr authored

readme.md

Node.js Mongoose+GridFS Example

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.

Try it out

Requirements

  • node.js (tested on v0.6.6)
  • coffee-script
  • mongodb (must be running)
  • npmjs

Running it

Install the dependencies by typing

  npm install .

And run it via coffee by typing

  coffee app

Running the Tests

From the root of the project:

  mocha

Have fun!

Something went wrong with that request. Please try again.