Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tdegrunt/noid

ODM for MongoDB/Node.js with CoffeeScript
https://github.com/tdegrunt/noid

Last synced: 26 days ago
JSON representation

ODM for MongoDB/Node.js with CoffeeScript

Awesome Lists containing this project

README

        

Noid
====

Noid is an ODM (object document mapper) for MongoDB and Node.js written in CoffeeScript.

Example
-------

class Person extends Document

@storeIn 'people'

@field 'name'
@field 'title'

Person.create { name: 'Chris }

Person.findFirst { name: 'Chris' }, (error, person) ->
console.log person.name()

Documentation
-------------

npm install noid

See the [integration specs](https://github.com/chrisgibson/noid/tree/master/spec/integration) for now...

About
-----

Noid intends to provide a clean way to setup mappings (intended to be created in CoffeeScript, though not required). It is obviously inspired by Mongoid and the api will likely mirror that of Mongoid's, barring any idiomatic deviations.

Credits
-------

Chris Gibson chrislgibson at gmail dot com