Last active
January 3, 2016 19:19
-
-
Save v0lkan/8507505 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/* | |
* A sneak peek of what I [1] will be presenting at <#hack4good 0.5>[3]. | |
* Come join us at <http://bit.ly/hack4good05>[2] to change the world for good. | |
* | |
* [1] http://volkan.io/ | |
* [2] This is a weekend hackhaton, totally free, and awesome. | |
* p.s.: There will be delicious and free food too ;) | |
* [3] http://bit.ly/hack4good05 | |
*/ | |
var mongoose = require('mongoose'), | |
User = mongoose.model('User'), | |
Thing = mongoose.model('Thing'), | |
Goal = mongoose.model('Goal'); | |
/** | |
* Populate database with sample application data | |
*/ | |
//Clear old goals, then add new goals in... | |
Goal.find({}).remove(function() { | |
Goal.create({ | |
name: 'Create an #aweome application **in less than 15 minutes**.', | |
detail: 'A full blown Node.js, Express.js, Angular.js, MongoDB, ' + | |
'Bootstrap app, with authentication, registration, ' + | |
'twitter and Facebook connect integration, and more...', | |
priority: 1 | |
}, { | |
name: 'Make the app scalable.', | |
detail: 'in less than 5 minutes (by **deploying** it to the cloud ' + | |
' which will also make it available to the rest of the world).', | |
priority: 2 | |
}, { | |
name: 'Brag about this (and other) cool $#!% for half an hour', | |
detail: 'With an emphasis on "why" speed matters in a #hackhaton.', | |
priority: 3 | |
}, function() { | |
console.log('Created the goals.'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment