Skip to content

ConnectAi/cs-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cs-mongo

A MongoDB adapter for Cornerstone

To install

We will eventually push this project to npm, but for now:

npm install git://github.com/ConnectAi/cs-mongo.git

Configure

Under any environment in your config.json file, in a Cornerstone project:

    ...

	"db": {
		"adapter": "mongodb",
		"mongodb" : {
			"host": "mongodb://localhost:27017/${DATABASE}"
		}
	}

    ...

Usage

app.db.collection("${COLLECTION}")
    .find({ name: "Taylor Swift" })
    .toArray(function(err, results) {
        console.log(results);
    });

About

Mongo adapter for Cornerstone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published