Skip to content

Instantly share code, notes, and snippets.

View mjarpitanand's full-sized avatar
:octocat:
Focusing

arpit anand mjarpitanand

:octocat:
Focusing
  • Rely
  • Banglore
View GitHub Profile
npm install mongoose --save
very impo - mongoose.connect('mongodb://localhost/advisorDemoTestDB', { useMongoClient: true })
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var adminSchema = new Schema({
email : { type : String, required : true},
password : {type : String , required : true}
})
var admin = mongoose.model('admin' , adminSchema);
<noscript>
<style type="text/css">
.pagecontainer {display:none;}
</style>
<div class="noscriptmsg">
<p>You don't have javascript enabled. Good luck with that.</p>
</div>
</noscript>