Skip to content

Commit

Permalink
fixed up the README and examples to actually work with the instructio…
Browse files Browse the repository at this point in the history
…ns given
  • Loading branch information
ebensing committed Jun 5, 2013
1 parent caf5755 commit 5451fbc
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This directory contains runnable sample mongoose programs.
To run:

- first install [Node.js](http://nodejs.org/)
- from the root of the project, execute `npm install -d`
- in the example directory, run `npm install -d`
- from the command line, execute: `node example.js`, replacing "example.js" with the name of a program.


Expand Down
2 changes: 1 addition & 1 deletion examples/express/connection-sharing/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

var express = require('express')
var mongoose = require('mongoose')
var mongoose = require('../../../lib')

var uri = 'mongodb://localhost/mongoose-shared-connection';
global.db = mongoose.createConnection(uri);
Expand Down
2 changes: 1 addition & 1 deletion examples/express/connection-sharing/modelA.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var Schema = require('mongoose').Schema;
var Schema = require('../../../lib').Schema;
var mySchema = Schema({ name: String });

// db is global
Expand Down
2 changes: 1 addition & 1 deletion examples/population/population-across-three-collections.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

var assert = require('assert')
var mongoose = require('../');
var mongoose = require('../../lib');
var Schema = mongoose.Schema;
var ObjectId = mongoose.Types.ObjectId;

Expand Down
2 changes: 1 addition & 1 deletion examples/population/population-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var mongoose = require('mongoose')
var mongoose = require('../../lib')
var Schema = mongoose.Schema;

console.log('Running mongoose version %s', mongoose.version);
Expand Down
2 changes: 1 addition & 1 deletion examples/population/population-of-existing-doc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var mongoose = require('mongoose')
var mongoose = require('../../lib')
var Schema = mongoose.Schema;

console.log('Running mongoose version %s', mongoose.version);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var mongoose = require('mongoose')
var mongoose = require('../../lib')
var Schema = mongoose.Schema;

console.log('Running mongoose version %s', mongoose.version);
Expand Down
2 changes: 1 addition & 1 deletion examples/population/population-options.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var mongoose = require('mongoose')
var mongoose = require('../../lib')
var Schema = mongoose.Schema;

console.log('Running mongoose version %s', mongoose.version);
Expand Down
2 changes: 1 addition & 1 deletion examples/population/population-plain-objects.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var mongoose = require('mongoose')
var mongoose = require('../../lib')
var Schema = mongoose.Schema;

console.log('Running mongoose version %s', mongoose.version);
Expand Down
2 changes: 1 addition & 1 deletion examples/schema/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Module dependencies.
*/

var mongoose = require('mongoose')
var mongoose = require('../../lib')
, Schema = mongoose.Schema;

/**
Expand Down
2 changes: 1 addition & 1 deletion examples/schema/storing-schemas-as-json/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// modules
var mongoose = require('mongoose')
var mongoose = require('../../../lib')
var Schema = mongoose.Schema;

// parse json
Expand Down

0 comments on commit 5451fbc

Please sign in to comment.