Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,447 --> 00:00:05,430
So let's get started with that project.
2
00:00:05,430 --> 00:00:06,620
And for this again,
3
00:00:06,620 --> 00:00:08,940
attached you'll find a starting project,
4
00:00:08,940 --> 00:00:11,550
which I did create through the command line
5
00:00:11,550 --> 00:00:14,210
as shown in the first course section,
6
00:00:14,210 --> 00:00:17,850
but again it's a slightly cleaned up starting project
7
00:00:17,850 --> 00:00:21,070
which simply ensures that we all start
8
00:00:21,070 --> 00:00:23,050
with the same foundation,
9
00:00:23,050 --> 00:00:25,580
with exactly the same starting point.
10
00:00:25,580 --> 00:00:28,960
So download that attached project snapshot,
11
00:00:28,960 --> 00:00:31,640
and then open up the terminal,
12
00:00:31,640 --> 00:00:33,880
navigate into this project folder,
13
00:00:33,880 --> 00:00:36,170
you are already navigated there
14
00:00:36,170 --> 00:00:40,140
if you use the built in terminal in Visual Studio Code,
15
00:00:40,140 --> 00:00:42,550
and then run NPM install,
16
00:00:42,550 --> 00:00:46,710
to install all those third-party packages which we need,
17
00:00:46,710 --> 00:00:49,190
like Next.js for example.
18
00:00:49,190 --> 00:00:51,450
And with that, we're ready to go.
19
00:00:51,450 --> 00:00:53,480
But before we write any code,
20
00:00:53,480 --> 00:00:56,650
let's plan our project and let's plan
21
00:00:56,650 --> 00:00:59,410
which pages we need, for example.
22
00:00:59,410 --> 00:01:03,950
Now, this project will only have four routes,
23
00:01:03,950 --> 00:01:06,230
but with those four routes,
24
00:01:06,230 --> 00:01:09,400
we are going to practice all the things we learned
25
00:01:09,400 --> 00:01:11,850
in the last course section.
26
00:01:11,850 --> 00:01:14,150
We will need a Starting page of course,
27
00:01:14,150 --> 00:01:16,272
so for our domain/nothing,
28
00:01:16,272 --> 00:01:18,870
I wanna reach the Starting page
29
00:01:18,870 --> 00:01:21,100
and on that Starting page,
30
00:01:21,100 --> 00:01:25,010
a list of featured events should be shown.
31
00:01:25,010 --> 00:01:26,120
And keep in mind,
32
00:01:26,120 --> 00:01:29,130
that we are building an application
33
00:01:29,130 --> 00:01:30,920
where we show events,
34
00:01:30,920 --> 00:01:32,990
where users can browse events
35
00:01:32,990 --> 00:01:35,410
and where they potentially in the future,
36
00:01:35,410 --> 00:01:38,030
might also be able to book events.
37
00:01:38,030 --> 00:01:41,500
That's not the focus of this first demo though,
38
00:01:41,500 --> 00:01:42,710
but therefore, of course,
39
00:01:42,710 --> 00:01:44,291
we wanna show a list of events
40
00:01:44,291 --> 00:01:47,780
which users can take a closer look at.
41
00:01:47,780 --> 00:01:50,050
And therefore, we wanna present such events
42
00:01:50,050 --> 00:01:51,173
on the Starting page,
43
00:01:51,173 --> 00:01:53,310
and in the data which we'll use,
44
00:01:53,310 --> 00:01:55,530
we'll basically set a flag
45
00:01:55,530 --> 00:01:58,550
determining whether an event is featured or not,
46
00:01:58,550 --> 00:01:59,760
and if it's featured,
47
00:01:59,760 --> 00:02:02,533
it should show up on the Starting page.
48
00:02:02,533 --> 00:02:07,350
But therefore we'll also add a /events route,
49
00:02:07,350 --> 00:02:10,310
so our domain /events,
50
00:02:10,310 --> 00:02:12,420
which should load a different page,
51
00:02:12,420 --> 00:02:15,080
a page with all events.
52
00:02:15,080 --> 00:02:17,570
So here we then list all the events
53
00:02:17,570 --> 00:02:20,700
we currently offer in our application.
54
00:02:20,700 --> 00:02:22,800
Now of course, users hopefully,
55
00:02:22,800 --> 00:02:24,890
then also click on some event
56
00:02:24,890 --> 00:02:27,210
to get more details about that event
57
00:02:27,210 --> 00:02:31,250
and to potentially sign up for it and book it.
58
00:02:31,250 --> 00:02:35,410
And therefore we will also add an Events Detail page
59
00:02:35,410 --> 00:02:40,410
for /events/ and then some dynamic ID.
60
00:02:40,850 --> 00:02:43,100
So that will not be hard coded,
61
00:02:43,100 --> 00:02:45,710
instead that ID should be dynamic
62
00:02:45,710 --> 00:02:49,000
so that we can load the same page,
63
00:02:49,000 --> 00:02:52,840
the same detail page, for different events
64
00:02:52,840 --> 00:02:56,270
and show data about that selected event.
65
00:02:56,270 --> 00:02:58,250
And last but not least,
66
00:02:58,250 --> 00:03:03,250
I also want to add a feature where users can filter events
67
00:03:03,500 --> 00:03:08,410
by year and month, so that I can not just see all events
68
00:03:08,410 --> 00:03:10,580
or just the featured events,
69
00:03:10,580 --> 00:03:14,340
but that I can also search for all the events
70
00:03:14,340 --> 00:03:18,240
that take place in May, 2021,
71
00:03:18,240 --> 00:03:19,073
let's say.
72
00:03:19,073 --> 00:03:21,672
And therefore, will add another route,
73
00:03:21,672 --> 00:03:26,040
another page with such a dynamic slug segment,
74
00:03:26,040 --> 00:03:29,060
which will load the Filtered Events page,
75
00:03:29,060 --> 00:03:33,990
where we then show all the events matching our filter here.
76
00:03:33,990 --> 00:03:37,430
And we're going to build all these things together
77
00:03:37,430 --> 00:03:41,370
in that project but as I mentioned of course,
78
00:03:41,370 --> 00:03:46,100
also feel free to not jump into the next video immediately,
79
00:03:46,100 --> 00:03:49,460
where we will get started with all of that together,
80
00:03:49,460 --> 00:03:53,260
but instead try setting up those pages,
81
00:03:53,260 --> 00:03:55,140
those routes on your own,
82
00:03:55,140 --> 00:03:58,140
even if you don't add all the other logic yet,
83
00:03:58,140 --> 00:03:59,860
but try creating those,
84
00:03:59,860 --> 00:04:01,680
a route file on your own,
85
00:04:01,680 --> 00:04:03,380
and add some dummy data,
86
00:04:03,380 --> 00:04:07,070
some dummy output to those page components,
87
00:04:07,070 --> 00:04:08,950
and then once you did that,
88
00:04:08,950 --> 00:04:10,960
move on to the next lecture
89
00:04:10,960 --> 00:04:12,953
where we will build this together.
6646
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.