-
Notifications
You must be signed in to change notification settings - Fork 54
/
db-data.ts
823 lines (758 loc) · 18.6 KB
/
db-data.ts
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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
export const COURSES: any = {
16: {
id: 16,
titles: {
description: 'Stripe Payments In Practice',
longDescription: 'Build your own ecommerce store & membership website with Firebase, Stripe and Express'
},
iconUrl: 'https://angular-university.s3-us-west-1.amazonaws.com/course-images/stripe-course.jpg',
lessonsCount: 10,
categories: ['BEGINNER'],
seqNo: 0,
url: 'stripe-course',
price: 50
},
4: {
id: 4,
titles: {
description: 'NgRx (with NgRx Data) - The Complete Guide',
longDescription: 'Learn the modern Ngrx Ecosystem, including NgRx Data, Store, Effects, Router Store, Ngrx Entity, and Dev Tools.'
},
iconUrl: 'https://angular-university.s3-us-west-1.amazonaws.com/course-images/ngrx-v2.png',
categories: ['BEGINNER'],
lessonsCount: 10,
seqNo: 1,
url: 'ngrx-course',
promo: false,
price: 50
},
14: {
id: 14,
titles: {
description: 'NestJs In Practice (with MongoDB)',
longDescription: 'Build a modern REST backend using Typescript, MongoDB and the familiar Angular API.',
},
iconUrl: 'https://angular-university.s3-us-west-1.amazonaws.com/course-images/nestjs-v2.png',
categories: ['BEGINNER'],
lessonsCount: 10,
seqNo: 2,
url: 'nestjs-course',
promo: false,
price: 50
},
12: {
id: 12,
titles: {
description: 'Angular Testing Course',
longDescription: 'In-depth guide to Unit Testing and E2E Testing of Angular Applications',
},
iconUrl: 'https://s3-us-west-1.amazonaws.com/angular-university/course-images/angular-testing-small.png',
categories: ['BEGINNER'],
seqNo: 3,
url: 'angular-testing-course',
lessonsCount: 10,
promo: false,
price: 50
},
1: {
id: 1,
titles: {
description: 'Serverless Angular with Firebase Course',
longDescription: 'Serveless Angular with Firestore, Firebase Storage & Hosting, Firebase Cloud Functions & AngularFire'
},
iconUrl: 'https://s3-us-west-1.amazonaws.com/angular-university/course-images/serverless-angular-small.png',
lessonsCount: 10,
categories: ['BEGINNER'],
seqNo: 4,
url: 'serverless-angular',
price: 50
},
2: {
id: 2,
titles: {
description: 'Angular Core Deep Dive',
longDescription: 'A detailed walk-through of the most important part of Angular - the Core and Common modules'
},
iconUrl: 'https://s3-us-west-1.amazonaws.com/angular-university/course-images/angular-core-in-depth-small.png',
lessonsCount: 10,
categories: ['BEGINNER'],
seqNo: 5,
url: 'angular-core-course',
price: 50
},
3: {
id: 3,
titles: {
description: 'RxJs In Practice Course',
longDescription: 'Understand the RxJs Observable pattern, learn the RxJs Operators via practical examples'
},
iconUrl: 'https://s3-us-west-1.amazonaws.com/angular-university/course-images/rxjs-in-practice-course.png',
courseListIcon: 'https://angular-academy.s3.amazonaws.com/main-logo/main-page-logo-small-hat.png',
categories: ['BEGINNER'],
lessonsCount: 10,
seqNo: 6,
url: 'rxjs-course',
price: 50
},
5: {
id: 5,
titles: {
description: 'Angular for Beginners',
longDescription: 'Establish a solid layer of fundamentals, learn what\'s under the hood of Angular'
},
iconUrl: 'https://angular-academy.s3.amazonaws.com/thumbnails/angular2-for-beginners-small-v2.png',
courseListIcon: 'https://angular-academy.s3.amazonaws.com/main-logo/main-page-logo-small-hat.png',
categories: ['BEGINNER'],
lessonsCount: 10,
seqNo: 7,
url: 'angular-for-beginners',
price: 50
},
6: {
id: 6,
titles: {
description: 'Angular Security Course - Web Security Fundamentals',
longDescription: 'Learn Web Security Fundamentals and apply them to defend an Angular / Node Application from multiple types of attacks.'
},
iconUrl: 'https://s3-us-west-1.amazonaws.com/angular-university/course-images/security-cover-small-v2.png',
courseListIcon: 'https://s3-us-west-1.amazonaws.com/angular-university/course-images/lock-v2.png',
categories: ['ADVANCED'],
lessonsCount: 11,
seqNo: 8,
url: 'angular-security-course',
price: 50
},
7: {
id: 7,
titles: {
description: 'Angular PWA - Progressive Web Apps Course',
longDescription: 'Learn Angular Progressive Web Applications, build the future of the Web Today.'
},
iconUrl: 'https://s3-us-west-1.amazonaws.com/angular-university/course-images/angular-pwa-course.png',
courseListIcon: 'https://s3-us-west-1.amazonaws.com/angular-university/course-images/alien.png',
categories: ['ADVANCED'],
lessonsCount: 8,
seqNo: 9,
url: 'angular-pwa-course',
price: 50
},
8: {
id: 8,
titles: {
description: 'Angular Advanced Library Laboratory: Build Your Own Library',
longDescription: 'Learn Advanced Angular functionality typically used in Library Development. Advanced Components, Directives, Testing, Npm'
},
iconUrl: 'https://angular-academy.s3.amazonaws.com/thumbnails/advanced_angular-small-v3.png',
courseListIcon: 'https://angular-academy.s3.amazonaws.com/thumbnails/angular-advanced-lesson-icon.png',
categories: ['INTERMEDIATE', 'ADVANCED'],
seqNo: 10,
url: 'angular-advanced-course',
price: 50
},
9: {
id: 9,
titles: {
description: 'The Complete Typescript Course',
longDescription: 'Complete Guide to Typescript From Scratch: Learn the language in-depth and use it to build a Node REST API.'
},
iconUrl: 'https://angular-academy.s3.amazonaws.com/thumbnails/typescript-2-small.png',
courseListIcon: 'https://angular-academy.s3.amazonaws.com/thumbnails/typescript-2-lesson.png',
categories: ['BEGINNER'],
seqNo: 11,
url: 'typescript-course',
price: 50
},
10: {
id: 10,
titles: {
description: 'Rxjs and Reactive Patterns Angular Architecture Course',
longDescription: 'Learn the core RxJs Observable Pattern as well and many other Design Patterns for building Reactive Angular Applications.'
},
iconUrl: 'https://s3-us-west-1.amazonaws.com/angular-academy/blog/images/rxjs-reactive-patterns-small.png',
courseListIcon: 'https://angular-academy.s3.amazonaws.com/course-logos/observables_rxjs.png',
categories: ['BEGINNER'],
seqNo: 12,
url: 'rxjs-patterns-course',
price: 50
},
11: {
id: 11,
titles: {
description: 'Angular Material Course',
longDescription: 'Build Applications with the official Angular Widget Library'
},
iconUrl: 'https://s3-us-west-1.amazonaws.com/angular-university/course-images/material_design.png',
categories: ['BEGINNER'],
seqNo: 13,
url: 'angular-material-course',
price: 50
}
};
export const LESSONS = {
1: {
id: 1,
'description': 'Angular Tutorial For Beginners - Build Your First App - Hello World Step By Step',
'duration': '4:17',
'seqNo': 1,
courseId: 5
},
2: {
id: 2,
'description': 'Building Your First Component - Component Composition',
'duration': '2:07',
'seqNo': 2,
courseId: 5
},
3: {
id: 3,
'description': 'Component @Input - How To Pass Input Data To an Component',
'duration': '2:33',
'seqNo': 3,
courseId: 5
},
4: {
id: 4,
'description': ' Component Events - Using @Output to create custom events',
'duration': '4:44',
'seqNo': 4,
courseId: 5
},
5: {
id: 5,
'description': ' Component Templates - Inline Vs External',
'duration': '2:55',
'seqNo': 5,
courseId: 5
},
6: {
id: 6,
'description': 'Styling Components - Learn About Component Style Isolation',
'duration': '3:27',
'seqNo': 6,
courseId: 5
},
7: {
id: 7,
'description': ' Component Interaction - Extended Components Example',
'duration': '9:22',
'seqNo': 7,
courseId: 5
},
8: {
id: 8,
'description': ' Components Tutorial For Beginners - Components Exercise !',
'duration': '1:26',
'seqNo': 8,
courseId: 5
},
9: {
id: 9,
'description': ' Components Tutorial For Beginners - Components Exercise Solution Inside',
'duration': '2:08',
'seqNo': 9,
courseId: 5
},
10: {
id: 10,
'description': ' Directives - Inputs, Output Event Emitters and How To Export Template References',
'duration': '4:01',
'seqNo': 10,
courseId: 5
},
// Security Course
11: {
id: 11,
'description': 'Course Helicopter View',
'duration': '08:19',
'seqNo': 1,
courseId: 6
},
12: {
id: 12,
'description': 'Installing Git, Node, NPM and Choosing an IDE',
'duration': '04:17',
'seqNo': 2,
courseId: 6
},
13: {
id: 13,
'description': 'Installing The Lessons Code - Learn Why Its Essential To Use NPM 5',
'duration': '06:05',
'seqNo': 3,
courseId: 6
},
14: {
id: 14,
'description': 'How To Run Node In TypeScript With Hot Reloading',
'duration': '03:57',
'seqNo': 4,
courseId: 6
},
15: {
id: 15,
'description': 'Guided Tour Of The Sample Application',
'duration': '06:00',
'seqNo': 5,
courseId: 6
},
16: {
id: 16,
'description': 'Client Side Authentication Service - API Design',
'duration': '04:53',
'seqNo': 6,
courseId: 6
},
17: {
id: 17,
'description': 'Client Authentication Service - Design and Implementation',
'duration': '09:14',
'seqNo': 7,
courseId: 6
},
18: {
id: 18,
'description': 'The New Angular HTTP Client - Doing a POST Call To The Server',
'duration': '06:08',
'seqNo': 8,
courseId: 6
},
19: {
id: 19,
'description': 'User Sign Up Server-Side Implementation in Express',
'duration': '08:50',
'seqNo': 9,
courseId: 6
},
20: {
id: 20,
'description': 'Introduction To Cryptographic Hashes - A Running Demo',
'duration': '05:46',
'seqNo': 10,
courseId: 6
},
21: {
id: 21,
'description': 'Some Interesting Properties Of Hashing Functions - Validating Passwords',
'duration': '06:31',
'seqNo': 11,
courseId: 6
},
// PWA course
22: {
id: 22,
'description': 'Course Kick-Off - Install Node, NPM, IDE And Service Workers Section Code',
'duration': '07:19',
'seqNo': 1,
courseId: 7
},
23: {
id: 23,
'description': 'Service Workers In a Nutshell - Service Worker Registration',
'duration': '6:59',
'seqNo': 2,
courseId: 7
},
24: {
id: 24,
'description': 'Service Workers Hello World - Lifecycle Part 1 and PWA Chrome Dev Tools',
'duration': '7:28',
'seqNo': 3,
courseId: 7
},
25: {
id: 25,
'description': 'Service Workers and Application Versioning - Install & Activate Lifecycle Phases',
'duration': '10:17',
'seqNo': 4,
courseId: 7
},
26: {
id: 26,
'description': 'Downloading The Offline Page - The Service Worker Installation Phase',
'duration': '09:50',
'seqNo': 5,
courseId: 7
},
27: {
id: 27,
'description': 'Introduction to the Cache Storage PWA API',
'duration': '04:44',
'seqNo': 6,
courseId: 7
},
28: {
id: 28,
'description': 'View Service Workers HTTP Interception Features In Action',
'duration': '06:07',
'seqNo': 7,
courseId: 7
},
29: {
id: 29,
'description': 'Service Workers Error Handling - Serving The Offline Page',
'duration': '5:38',
'seqNo': 8,
courseId: 7
},
// Serverless Angular with Firebase Course
30: {
id: 30,
description: 'Development Environment Setup',
'duration': '5:38',
'seqNo': 1,
courseId: 1
},
31: {
id: 31,
description: 'Introduction to the Firebase Ecosystem',
'duration': '5:12',
'seqNo': 2,
courseId: 1
},
32: {
id: 32,
description: 'Importing Data into Firestore',
'duration': '4:07',
'seqNo': 3,
courseId: 1
},
33: {
id: 33,
description: 'Firestore Documents in Detail',
'duration': '7:32',
'seqNo': 4,
courseId: 1
},
34: {
id: 34,
description: 'Firestore Collections in Detail',
'duration': '6:28',
'seqNo': 5,
courseId: 1
},
35: {
id: 35,
description: 'Firestore Unique Identifiers',
'duration': '4:38',
'seqNo': 6,
courseId: 1
},
36: {
id: 36,
description: 'Querying Firestore Collections',
'duration': '7:54',
'seqNo': 7,
courseId: 1
},
37: {
id: 37,
description: 'Firebase Security Rules In Detail',
'duration': '5:31',
'seqNo': 8,
courseId: 1
},
38: {
id: 38,
description: 'Firebase Cloud Functions In Detail',
'duration': '8:19',
'seqNo': 9,
courseId: 1
},
39: {
id: 39,
description: 'Firebase Storage In Detail',
'duration': '7:05',
'seqNo': 10,
courseId: 1
},
// Angular Testing Course
40: {
id: 40,
description: 'Angular Testing Course - Helicopter View',
'duration': '5:38',
'seqNo': 1,
courseId: 12
},
41: {
id: 41,
description: 'Setting Up the Development Environment',
'duration': '5:12',
'seqNo': 2,
courseId: 12
},
42: {
id: 42,
description: 'Introduction to Jasmine, Spies and specs',
'duration': '4:07',
'seqNo': 3,
courseId: 12
},
43: {
id: 43,
description: 'Introduction to Service Testing',
'duration': '7:32',
'seqNo': 4,
courseId: 12
},
44: {
id: 44,
description: 'Settting up the Angular TestBed',
'duration': '6:28',
'seqNo': 5,
courseId: 12
},
45: {
id: 45,
description: 'Mocking Angular HTTP requests',
'duration': '4:38',
'seqNo': 6,
courseId: 12
},
46: {
id: 46,
description: 'Simulating Failing HTTP Requests',
'duration': '7:54',
'seqNo': 7,
courseId: 12
},
47: {
id: 47,
description: 'Introduction to Angular Component Testing',
'duration': '5:31',
'seqNo': 8,
courseId: 12
},
48: {
id: 48,
description: 'Testing Angular Components without the DOM',
'duration': '8:19',
'seqNo': 9,
courseId: 12
},
49: {
id: 49,
description: 'Testing Angular Components with the DOM',
'duration': '7:05',
'seqNo': 10,
courseId: 12
},
// Ngrx Course
50: {
id: 50,
'description': 'Welcome to the Angular Ngrx Course',
'duration': '6:53',
'seqNo': 1,
courseId: 4
},
51: {
id: 51,
'description': 'The Angular Ngrx Architecture Course - Helicopter View',
'duration': '5:52',
'seqNo': 2,
courseId: 4
},
52: {
id: 52,
'description': 'The Origins of Flux - Understanding the Famous Facebook Bug Problem',
'duration': '8:17',
'seqNo': 3,
courseId: 4
},
53: {
id: 53,
'description': 'Custom Global Events - Why Don\'t They Scale In Complexity?',
'duration': '7:47',
'seqNo': 4,
courseId: 4
},
54: {
id: 54,
'description': 'The Flux Architecture - How Does it Solve Facebook Counter Problem?',
'duration': '9:22',
'seqNo': 5,
courseId: 4
},
55: {
id: 55,
'description': 'Unidirectional Data Flow And The Angular Development Mode',
'duration': '7:07',
'seqNo': 6,
courseId: 4
},
56: {
id: 56,
'description': 'Dispatching an Action - Implementing the Login Component',
'duration': '4:39',
'seqNo': 7,
courseId: 4
},
57: {
id: 57,
'description': 'Setting Up the Ngrx DevTools - Demo',
'duration': '4:44',
'seqNo': 8,
courseId: 4
},
58: {
id: 58,
'description': 'Understanding Reducers - Writing Our First Reducer',
'duration': '9:10',
'seqNo': 9,
courseId: 4
},
59: {
id: 59,
'description': 'How To Define the Store Initial State',
'duration': '9:10',
'seqNo': 10,
courseId: 4
},
// NestJs Course
60: {
id: 60,
'description': 'Introduction to NestJs',
'duration': '4:29',
'seqNo': 1,
courseId: 14
},
61: {
id: 61,
'description': 'Development Environment Setup',
'duration': '6:37',
'seqNo': 2,
courseId: 14
},
62: {
id: 62,
'description': 'Setting up a MongoDB Database',
'duration': '6:38',
'seqNo': 3,
courseId: 14
},
63: {
id: 63,
'description': 'CRUD with NestJs - Controllers and Repositories',
'duration': '12:12',
'seqNo': 4,
courseId: 14
},
64: {
id: 64,
'description': 'First REST endpoint - Get All Courses',
'duration': '3:42',
'seqNo': 5,
courseId: 14
},
65: {
id: 65,
'description': 'Error Handling',
'duration': '5:15',
'seqNo': 6,
courseId: 14
},
66: {
id: 66,
'description': 'NestJs Middleware',
'duration': '7:08',
'seqNo': 7,
courseId: 14
},
67: {
id: 67,
'description': 'Authentication in NestJs',
'duration': '13:22',
'seqNo': 8,
courseId: 14
},
68: {
id: 68,
'description': 'Authorization in NestJs',
'duration': '6:43',
'seqNo': 9,
courseId: 14
},
69: {
id: 69,
'description': 'Guards & Interceptors',
'duration': '8:16',
'seqNo': 10,
courseId: 14
},
// Stripe Course
70: {
id: 70,
'description': 'Introduction to Stripe Payments',
'duration': '03:45',
'seqNo': 0,
courseId: 16
},
71: {
id: 71,
'description': 'The advantages of Stripe Checkout',
'duration': '08:36',
'seqNo': 1,
courseId: 16
},
72: {
id: 72,
'description': 'Setting up the development environment',
'duration': '09:10',
'seqNo': 2,
courseId: 16
},
73: {
id: 73,
'description': 'Creating a server Checkout Session',
'duration': '07:20',
'seqNo': 3,
courseId: 16
},
74: {
id: 74,
'description': 'Redirecting to the Stripe Checkout page',
'duration': '11:47',
'seqNo': 4,
courseId: 16
},
75: {
id: 75,
'description': 'Order fulfillment webhook',
'duration': '06:30',
'seqNo': 5,
courseId: 16
},
76: {
id: 76,
'description': 'Installing the Stripe CLI',
'duration': '4:13',
'seqNo': 6,
courseId: 16
},
77: {
id: 77,
'description': 'Firestore Security Rules for protecting Premium content',
'duration': '05:47',
'seqNo': 7,
courseId: 16
},
78: {
id: 78,
'description': 'Stripe Subscriptions with Stripe Checkout',
'duration': '05:17',
'seqNo': 8,
courseId: 16
},
79: {
id: 79,
'description': 'Stripe Subscription Fulfillment',
'duration': '07:50',
'seqNo': 9,
courseId: 16
},
};
export function findCourseById(courseId: number) {
return COURSES[courseId];
}
export function findLessonsForCourse(courseId: number) {
return Object.values(LESSONS).filter(lesson => lesson.courseId == courseId);
}