-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.js
321 lines (315 loc) · 10.7 KB
/
data.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
const moment = require('moment');
const mongoose = require('mongoose');
const user1Id = mongoose.Types.ObjectId();
const user2Id = mongoose.Types.ObjectId();
const user3Id = mongoose.Types.ObjectId();
const meetup1Id = mongoose.Types.ObjectId();
const meetup2Id = mongoose.Types.ObjectId();
const meetup3Id = mongoose.Types.ObjectId();
const meetup4Id = mongoose.Types.ObjectId();
const meetup5Id = mongoose.Types.ObjectId();
const meetup6Id = mongoose.Types.ObjectId();
const thread1Id = mongoose.Types.ObjectId();
const thread2Id = mongoose.Types.ObjectId();
const thread3Id = mongoose.Types.ObjectId();
const post1Id = mongoose.Types.ObjectId();
const post2Id = mongoose.Types.ObjectId();
const post3Id = mongoose.Types.ObjectId();
const post4Id = mongoose.Types.ObjectId();
const post5Id = mongoose.Types.ObjectId();
const category1Id = mongoose.Types.ObjectId();
const category2Id = mongoose.Types.ObjectId();
const category3Id = mongoose.Types.ObjectId();
const category4Id = mongoose.Types.ObjectId();
const category5Id = mongoose.Types.ObjectId();
module.exports = {
meetups: [
{
_id: meetup1Id,
location: 'Bratislava, SK',
processedLocation: 'bratislavask',
title: 'Night in the City',
image:
'https://images.unsplash.com/photo-1519999482648-25049ddd37b1?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2452&q=80',
description:
'Some description of this event. I dont know what to talk about',
shortInfo: "Just some short info, I don't kow just be yourself.",
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
startDate: moment().add(2, 'days').toISOString(),
timeFrom: '14:00',
timeTo: '18:00',
joinedPeopleCount: 1,
status: 'active',
category: category1Id,
joinedPeople: [user2Id],
meetupCreator: user1Id,
},
{
_id: meetup2Id,
location: 'New York, US',
processedLocation: 'newyorkus',
title: 'New Aquaman',
image:
'https://images.unsplash.com/photo-1527956041665-d7a1b380c460?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=668&q=80',
description: 'Lets watch new aquaman together',
shortInfo: "Just some short info, I don't kow just be yourself.",
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
startDate: moment().add(7, 'days').toISOString(),
timeFrom: '08:00',
timeTo: '10:00',
joinedPeopleCount: 2,
status: 'active',
category: category2Id,
joinedPeople: [user1Id, user3Id],
meetupCreator: user2Id,
},
{
_id: meetup3Id,
location: 'Lisbon, PT',
processedLocation: 'lisbonpt',
title: 'Cycling Together',
image:
'https://images.unsplash.com/photo-1527956041665-d7a1b380c460?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=668&q=80',
description: 'Lets watch new Tour De France',
shortInfo: "Just some short info, I don't kow just be yourself.",
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
startDate: moment().add(7, 'days').toISOString(),
timeFrom: '08:00',
timeTo: '10:00',
joinedPeopleCount: 2,
status: 'active',
category: category5Id,
joinedPeople: [user1Id, user3Id],
meetupCreator: user2Id,
},
{
_id: meetup4Id,
location: 'Los Angeles, US',
processedLocation: 'losangelesus',
title: 'New Aquaman 2',
image:
'https://images.unsplash.com/photo-1527956041665-d7a1b380c460?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=668&q=80',
description: 'Lets watch new aquaman together',
shortInfo: "Just some short info, I don't kow just be yourself.",
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
startDate: moment().add(7, 'days').toISOString(),
timeFrom: '08:00',
timeTo: '10:00',
joinedPeopleCount: 2,
status: 'active',
category: category1Id,
joinedPeople: [user1Id, user3Id],
meetupCreator: user2Id,
},
{
_id: meetup5Id,
location: 'Berlin, GE',
processedLocation: 'berlinge',
title: 'New Aquaman 5',
image:
'https://images.unsplash.com/photo-1527956041665-d7a1b380c460?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=668&q=80',
description: 'Lets watch new aquaman together',
shortInfo: "Just some short info, I don't kow just be yourself.",
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
startDate: moment().add(7, 'days').toISOString(),
timeFrom: '08:00',
timeTo: '10:00',
joinedPeopleCount: 2,
status: 'active',
category: category2Id,
joinedPeople: [user1Id, user3Id],
meetupCreator: user2Id,
},
{
_id: meetup6Id,
location: 'London, UK',
processedLocation: 'londonuk',
title: 'New Spiderman',
image:
'https://images.unsplash.com/photo-1527956041665-d7a1b380c460?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=668&q=80',
description: 'Lets watch new spiderman together',
shortInfo: "Just some short info, I don't kow just be yourself.",
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
startDate: moment().add(7, 'days').toISOString(),
timeFrom: '08:00',
timeTo: '10:00',
joinedPeopleCount: 2,
status: 'active',
category: category3Id,
joinedPeople: [user1Id, user3Id],
meetupCreator: user2Id,
},
],
users: [
{
_id: user1Id,
avatar:
'https://b.kisscc0.com/20180718/urw/kisscc0-ninja-computer-icons-samurai-youtube-avatar-ninja-5b4ed903c2dd20.4931332915318940197982.jpg',
email: '[email protected]',
name: 'Filip Jerga',
info: 'Bla bla bla bla',
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
username: 'Rhonyn99',
password: 'testtest',
joinedMeetups: [meetup2Id, meetup3Id, meetup4Id, meetup5Id, meetup6Id],
},
{
_id: user2Id,
avatar:
'https://www.clipartmax.com/png/middle/195-1956720_%5B-img%5D-avatar.png',
email: '[email protected]',
name: 'Peter Green',
info: 'Bla bla bla bla',
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
username: 'Petergreen',
password: 'testtest1',
joinedMeetups: [meetup1Id],
},
{
_id: user3Id,
avatar:
'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQuqyc3j2s3bL4DIkC8uC9h0rcAdsDXcwJPNh8XHWbLQfHbOpVU',
email: '[email protected]',
name: 'Kevin Rock',
info: 'I have a famous name',
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
username: 'Kevin21',
password: 'testtest2',
joinedMeetups: [meetup2Id, meetup3Id, meetup4Id, meetup5Id, meetup6Id],
},
],
threads: [
{
_id: thread1Id,
title: 'Should I take some food?',
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
meetup: meetup1Id,
user: user1Id,
posts: [post1Id, post2Id],
},
{
_id: thread2Id,
title: 'I dont know what to think about this.',
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
meetup: meetup2Id,
user: user2Id,
posts: [post3Id, post4Id],
},
{
_id: thread3Id,
title: 'Here should be something about thread 3',
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
meetup: meetup2Id,
user: user2Id,
posts: [post5Id],
},
],
posts: [
{
_id: post1Id,
text: 'I will be late',
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
thread: thread1Id,
user: user1Id,
},
{
_id: post2Id,
text: 'I like turtles',
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
thread: thread1Id,
user: user1Id,
},
{
_id: post3Id,
text: 'I will be late',
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
thread: thread2Id,
user: user2Id,
},
{
_id: post4Id,
text: 'I like turtles',
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
thread: thread2Id,
user: user2Id,
},
{
_id: post5Id,
text: 'I like writing about nothing',
createdAt: moment().toISOString(),
updatedAt: moment().toISOString(),
thread: thread3Id,
user: user2Id,
},
],
categories: [
{
_id: category1Id,
name: 'sport',
image:
'https://images.unsplash.com/photo-1508355991726-ebd81e4802f7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1506&q=80',
},
{
_id: category2Id,
name: 'cinema',
image:
'https://images.unsplash.com/photo-1478720568477-152d9b164e26?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1500&q=80',
image2:
'https://images.unsplash.com/photo-1524985069026-dd778a71c7b4?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1502&q=80',
image3:
'https://images.unsplash.com/photo-1517604931442-7e0c8ed2963c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60',
},
{
_id: category3Id,
name: 'music',
image:
'https://images.unsplash.com/photo-1511735111819-9a3f7709049c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1334&q=80',
},
{
_id: category4Id,
name: 'dance',
image:
'https://images.unsplash.com/photo-1509670811615-bb8b07cb3caf?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1510&q=80',
},
{
_id: category5Id,
name: 'party',
image:
'https://images.unsplash.com/photo-1519671482749-fd09be7ccebf?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1500&q=80',
},
{
_id: mongoose.Types.ObjectId(),
name: 'literature',
image:
'https://images.unsplash.com/photo-1490633874781-1c63cc424610?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1500&q=80',
},
{
_id: mongoose.Types.ObjectId(),
name: 'food',
image:
'https://images.unsplash.com/photo-1536510233921-8e5043fce771?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1542&q=80',
},
{
_id: mongoose.Types.ObjectId(),
name: 'games',
image:
'https://images.unsplash.com/photo-1493711662062-fa541adb3fc8?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1500&q=80',
},
],
};