-
Notifications
You must be signed in to change notification settings - Fork 0
/
seeds.js
28 lines (25 loc) · 824 Bytes
/
seeds.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
26
27
28
var mongoose = require("mongoose");
var Campground = require("./models/campground.js");
var Comment = require("./models/comment.js");
var data = [
{
name: "Camp1",
image: "https://www.nhstateparks.org/uploads/images/Dry-River_Campground_02.jpg",
description: "Nice campground"
},
{
name: "Camp2",
image: "https://www.nhstateparks.org/uploads/images/Dry-River_Campground_02.jpg",
description: "Nice campground asdasdasd"
},
{
name: "Camp3",
image: "https://www.nhstateparks.org/uploads/images/Dry-River_Campground_02.jpg",
description: "Nice campground qweqweqwe"
}
];
function seedDB(){
Campground.remove({}, function(err){
});
}
module.exports = seedDB;