1
00:00:02,000 --> 00:00:03,000
Now before we start digging

2
00:00:03,000 --> 00:00:06,000
into the created project and before we start diving

3
00:00:06,000 --> 00:00:09,000
into all these core NextJS features,

4
00:00:09,000 --> 00:00:13,000
I want to come back to this project creation process,

5
00:00:13,000 --> 00:00:16,000
and there to this question here,

6
00:00:16,000 --> 00:00:19,000
whether we want to use the App Router or not.

7
00:00:19,000 --> 00:00:23,000
And here it of course said that it's recommended to use it

8
00:00:23,000 --> 00:00:26,000
but nonetheless, I told you to choose no.

9
00:00:26,000 --> 00:00:30,000
Now this approach where you use the App Router

10
00:00:30,000 --> 00:00:34,000
is an alternative way of building NextJS apps.

11
00:00:34,000 --> 00:00:37,000
An alternative to using the Pages Router,

12
00:00:37,000 --> 00:00:39,000
which is the approach we'll use in this course.

13
00:00:40,000 --> 00:00:43,000
The App Router uses a different project structure,

14
00:00:43,000 --> 00:00:47,000
a different folder structure, and different features.

15
00:00:47,000 --> 00:00:48,000
The problem with it

16
00:00:48,000 --> 00:00:52,000
just is that despite the NextJS page telling you

17
00:00:52,000 --> 00:00:55,000
that it's stable to use now,

18
00:00:55,000 --> 00:00:57,000
crucial features are missing there.

19
00:00:57,000 --> 00:01:00,000
To be precise, this Server Actions feature

20
00:01:00,000 --> 00:01:04,000
is still in Alpha at this point of time.

21
00:01:04,000 --> 00:01:08,000
Now, Server Actions is a part of this App Router feature

22
00:01:08,000 --> 00:01:11,000
even though it's not clearly stated here,

23
00:01:11,000 --> 00:01:13,000
but it is crucial for using the App Router

24
00:01:13,000 --> 00:01:16,000
because this Server Actions feature

25
00:01:16,000 --> 00:01:18,000
is a feature that will allow you

26
00:01:18,000 --> 00:01:22,000
to basically handle POST, PUT, PATCH,

27
00:01:22,000 --> 00:01:26,000
basically all non-GET requests in your NextJS app.

28
00:01:26,000 --> 00:01:31,000
So if you wanna build a NextJS app where data can change,

29
00:01:31,000 --> 00:01:34,000
where users can submit forms, for example,

30
00:01:34,000 --> 00:01:37,000
you will need these Server Actions

31
00:01:37,000 --> 00:01:40,000
to handle these changes on the backend.

32
00:01:40,000 --> 00:01:43,000
Right now, this feature is not final yet though,

33
00:01:43,000 --> 00:01:45,000
and therefore likely to change

34
00:01:45,000 --> 00:01:47,000
and likely to contain bugs and errors,

35
00:01:47,000 --> 00:01:50,000
and it's definitely not recommended for production yet.

36
00:01:50,000 --> 00:01:54,000
Therefore, at the moment, with this App Router,

37
00:01:54,000 --> 00:01:56,000
you can only build basic websites

38
00:01:56,000 --> 00:01:59,000
that don't need to handle form submissions and so on.

39
00:01:59,000 --> 00:02:02,000
That's why in the official docs for the App Router,

40
00:02:02,000 --> 00:02:05,000
you also find no entry for manipulating data,

41
00:02:05,000 --> 00:02:07,000
just for data fetching.

42
00:02:08,000 --> 00:02:09,000
And because of that,

43
00:02:09,000 --> 00:02:13,000
this course currently does not cover the App Router yet.

44
00:02:13,000 --> 00:02:16,000
This, of course, very likely will change in the future.

45
00:02:16,000 --> 00:02:19,000
I do plan to update this course

46
00:02:19,000 --> 00:02:21,000
and give you this update for free

47
00:02:21,000 --> 00:02:24,000
once this App Router is fully usable.

48
00:02:24,000 --> 00:02:26,000
So once all features you need

49
00:02:26,000 --> 00:02:30,000
to build production-ready apps with the App Router

50
00:02:30,000 --> 00:02:31,000
are available.

51
00:02:31,000 --> 00:02:35,000
But until then, this course will use the Pages Router.

52
00:02:35,000 --> 00:02:37,000
And that's why I recommended

53
00:02:37,000 --> 00:02:40,000
that you should not use Yes here when creating the project

54
00:02:40,000 --> 00:02:45,000
and you were asked to use the App Router, but No instead.

