This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more infos on shop in main and shops
- Loading branch information
Showing
3 changed files
with
62 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,49 +10,65 @@ var Shop = require('../api/shop/shop.model'); | |
|
||
Shop.find({}).remove(function () { | ||
Shop.create({ | ||
name: "Kunstspätkauf", | ||
address: "Schlesische Str. 19, 10997 Berlin", | ||
stock: 100, | ||
latitude: 52.49861, | ||
longitude: 13.446149999999989, | ||
createdAt: "2013-10-22T09:34:23.519Z", | ||
updatedAt: "2013-10-31T13:24:23.236Z" | ||
}, | ||
{ | ||
name: "Fulda Getränke", | ||
address: "Fuldastr. 53, 12043 Berlin-Neukölln", | ||
stock: 100, | ||
latitude: 52.48369, | ||
longitude: 13.435249999999996, | ||
createdAt: "2013-10-22T09:30:15.516Z", | ||
updatedAt: "2013-10-30T15:20:53.392Z" | ||
}, | ||
{ | ||
name: "Fachschaft Charité im Hexenhaus", | ||
address: "Philippstraße 12 10115 Berlin", | ||
description: "Lorem Ipsum", | ||
stock: 100, | ||
latitude: 52.5250862, | ||
longitude: 13.38128329999995, | ||
createdAt: "2013-11-04T08:55:04.063Z", | ||
updatedAt: "2013-11-04T08:55:04.715Z" | ||
}); | ||
name: "Kunstspätkauf", | ||
address: "Schlesische Str. 19, 10997 Berlin", | ||
stock: 100, | ||
latitude: 52.49861, | ||
longitude: 13.446149999999989, | ||
image: "assets/images/yeoman.png", | ||
link: "http://www.google.de/", | ||
createdAt: "2013-10-22T09:34:23.519Z", | ||
updatedAt: "2013-10-31T13:24:23.236Z" | ||
}, | ||
{ | ||
name: "Fulda Getränke", | ||
address: "Fuldastr. 53, 12043 Berlin-Neukölln", | ||
stock: 100, | ||
latitude: 52.48369, | ||
longitude: 13.435249999999996, | ||
image: "assets/images/yeoman.png", | ||
link: "http://www.google.de/", | ||
createdAt: "2013-10-22T09:30:15.516Z", | ||
updatedAt: "2013-10-30T15:20:53.392Z" | ||
}, | ||
{ | ||
name: "Fachschaft Charité im Hexenhaus", | ||
address: "Philippstraße 12 10115 Berlin", | ||
description: "Lorem Ipsum", | ||
stock: 100, | ||
latitude: 52.5250862, | ||
longitude: 13.38128329999995, | ||
image: "assets/images/yeoman.png", | ||
link: "http://www.google.de/", | ||
createdAt: "2013-11-04T08:55:04.063Z", | ||
updatedAt: "2013-11-04T08:55:04.715Z" | ||
}, | ||
{ | ||
"name": "KIKISOL", | ||
"address": "Lindowertsr. 12 13347 Berlin", | ||
"description": "im alten und im neuen KIKI SOL", | ||
"stock": 0, | ||
"image": "assets/images/yeoman.png", | ||
"link": "http://www.google.de/", | ||
"latitude": 52.54416209999999, | ||
"longitude": 13.36886949999996 | ||
}); | ||
}); | ||
|
||
User.find({}).remove(function() { | ||
User.find({}).remove(function () { | ||
User.create({ | ||
provider: 'local', | ||
name: 'Test User', | ||
email: '[email protected]', | ||
password: 'test' | ||
}, { | ||
provider: 'local', | ||
role: 'admin', | ||
name: 'Admin', | ||
email: '[email protected]', | ||
password: 'admin' | ||
}, function() { | ||
provider: 'local', | ||
name: 'Test User', | ||
email: '[email protected]', | ||
password: 'test' | ||
}, { | ||
provider: 'local', | ||
role: 'admin', | ||
name: 'Admin', | ||
email: '[email protected]', | ||
password: 'admin' | ||
}, function () { | ||
console.log('finished populating users'); | ||
} | ||
); | ||
}); | ||
}); |