Skip to content

Commit

Permalink
Add example project and new screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
mnort9 committed Dec 11, 2015
1 parent 9b40e8d commit 1aceac8
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
10 changes: 10 additions & 0 deletions example/models/person.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var mongoose = require('mongoose');

var schema = new mongoose.Schema({
name: String,
address: String,
city: String,
state: String
});

module.exports = mongoose.model('Person', schema);
5 changes: 5 additions & 0 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"mongoose": "^4.1.2"
}
}
15 changes: 15 additions & 0 deletions example/seed.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
var mongoose = require('mongoose');
var Person = require('./models/person');

mongoose.connect('mongodb://localhost/goosecon-example');

Person.create({
name: 'Kim Kardashian',
address: '1 Bayshore Blvd',
city: 'Tampa',
state: 'FL'
}, function(err) {
if (err) throw err;
process.exit();
});

5 changes: 5 additions & 0 deletions example/services/spoilMe.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
shop: function() {
return 'Done. Bought everything and handed it to you.';
}
};
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1aceac8

Please sign in to comment.