-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathseed.js
25 lines (25 loc) · 828 Bytes
/
seed.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// const mongoose = require('mongoose');
// const config = require('./config/keys');
// const bcrypt = require('bcryptjs');
// const db = require('./config/keys').MongoURI;
// mongoose.connect(db,{useNewUrlParser:true})
// .then(()=>console.log('MongoDB Connected....'))
// .catch(err=>console.log(err));
// let TechnicalUser=require('./models/TechnicalUser');
// TechnicalUser.remove({})
// .then(()=>{
// let technicalUser=[];
// technicalUser.push({
// name:"Kartike Dutta",
// email:"[email protected]",
// password:"Saarthi@123"
// });
// return TechnicalUser.create(technicalUser);
// })
// .then(()=>{
// process.exit();
// })
// .catch((e)=>{
// console.log(e);
// process.exit(1);
// });