1
00:00:00,000 --> 00:00:02,000
And here, I now got

2
00:00:02,000 --> 00:00:06,000
a little exercise for you, because we did already learn

3
00:00:06,000 --> 00:00:11,000
how we can generally set up routes in NextJS applications.

4
00:00:11,000 --> 00:00:14,000
We learned that over the last couple of lectures,

5
00:00:14,000 --> 00:00:17,000
and therefore, my exercise for you

6
00:00:17,000 --> 00:00:22,000
is to create three new routes in this new project

7
00:00:22,000 --> 00:00:24,000
that I shared with you.

8
00:00:24,000 --> 00:00:27,000
To be precise, I want you to create a meals route,

9
00:00:27,000 --> 00:00:31,000
a /meals/share route,

10
00:00:31,000 --> 00:00:34,000
so a nested route in the meals route with an extra path

11
00:00:34,000 --> 00:00:38,000
of share, and a community route.

12
00:00:38,000 --> 00:00:40,000
And for this exercise,

13
00:00:40,000 --> 00:00:43,000
it's then enough if every route renders

14
00:00:43,000 --> 00:00:46,000
a super simple React component

15
00:00:46,000 --> 00:00:49,000
that maybe just outputs some title,

16
00:00:49,000 --> 00:00:50,000
so the page content

17
00:00:50,000 --> 00:00:53,000
of all these routes is not important right now.

18
00:00:53,000 --> 00:00:57,000
We'll work on that to gather over the next lectures,

19
00:00:57,000 --> 00:01:01,000
but you should set up those routes, and if you feel like it,

20
00:01:01,000 --> 00:01:04,000
you also can add some links to some of these pages,

21
00:01:04,000 --> 00:01:08,000
so that users can navigate between those routes.

22
00:01:09,000 --> 00:01:10,000
But that's not all.

23
00:01:10,000 --> 00:01:15,000
I then also want you to create an extra fourth route,

24
00:01:15,000 --> 00:01:19,000
which also leads to /meals/something,

25
00:01:19,000 --> 00:01:22,000
but now that something part should be dynamic,

26
00:01:22,000 --> 00:01:24,000
so that in the end later,

27
00:01:24,000 --> 00:01:28,000
we'll have /meals/meals/share,

28
00:01:28,000 --> 00:01:30,000
which will be the page that allows us

29
00:01:30,000 --> 00:01:33,000
to share meals with the community,

30
00:01:33,000 --> 00:01:38,000
and /meals/, and then some dynamic segment,

31
00:01:38,000 --> 00:01:42,000
some dynamic slug that will identify a specific meal,

32
00:01:42,000 --> 00:01:45,000
and that will later allow us to view the details

33
00:01:45,000 --> 00:01:46,000
of a selected meal.

34
00:01:48,000 --> 00:01:49,000
That's my exercise for you.

35
00:01:49,000 --> 00:01:52,000
Create those routes, add some links,

36
00:01:52,000 --> 00:01:55,000
but don't worry about styling or the page content.

37
00:01:55,000 --> 00:01:57,000
In the next lecture, we're going

38
00:01:57,000 --> 00:01:58,000
to set up those routes together,

39
00:01:58,000 --> 00:02:01,000
and thereafter, we're going to fill them with some life.

