1
00:00:02,240 --> 00:00:05,500
By now, we have a basic understanding

2
00:00:05,500 --> 00:00:07,150
of NodeJS and Express,

3
00:00:07,150 --> 00:00:11,090
and we are able to build some dummy websites with that,

4
00:00:11,090 --> 00:00:14,800
but the pages we built up to this point aren't too useful.

5
00:00:14,800 --> 00:00:18,100
And one of the main problems is that up to this point,

6
00:00:18,100 --> 00:00:21,410
we're doing everything in our JavaScript code

7
00:00:21,410 --> 00:00:25,250
and that includes the generation of our response

8
00:00:25,250 --> 00:00:28,590
HTML content which in turn means

9
00:00:28,590 --> 00:00:31,040
that it's quite simple content,

10
00:00:31,040 --> 00:00:36,040
not really a well-structured page, leave alone any styles,

11
00:00:36,210 --> 00:00:39,560
because we don't really wanna write all of that

12
00:00:39,560 --> 00:00:41,433
in just JavaScript.

13
00:00:42,760 --> 00:00:45,970
Well, that's where this section comes in now.

14
00:00:45,970 --> 00:00:49,820
Now we're going to glue together a couple of pieces

15
00:00:49,820 --> 00:00:53,730
that will in the end lead to far more realistic

16
00:00:53,730 --> 00:00:58,700
and useful websites that we build with NodeJS and Express.

17
00:00:58,700 --> 00:01:00,390
Because in this course section,

18
00:01:00,390 --> 00:01:05,390
we are going to explore how NodeJS with Express.js

19
00:01:05,960 --> 00:01:10,190
is able to work together with HTML files

20
00:01:10,190 --> 00:01:15,190
and how we can work with HTML files and CSS and JavaScript,

21
00:01:16,230 --> 00:01:18,790
browser side JavaScript, as we did it

22
00:01:18,790 --> 00:01:22,320
in all the sections up to these backend sections,

23
00:01:22,320 --> 00:01:27,320
and how we can in addition also make that HTML content

24
00:01:27,430 --> 00:01:29,070
a bit more dynamic,

25
00:01:29,070 --> 00:01:32,810
so how we can get the best of both worlds.

26
00:01:32,810 --> 00:01:35,690
And for this, in this course section,

27
00:01:35,690 --> 00:01:40,690
we are going to dive into how we can send HTML files

28
00:01:41,730 --> 00:01:45,800
as responses in our Express.js application,

29
00:01:45,800 --> 00:01:48,580
instead of just sending text responses

30
00:01:48,580 --> 00:01:53,170
that may include HTML as we did it up to this point,

31
00:01:53,170 --> 00:01:54,830
and we are going to explore

32
00:01:54,830 --> 00:01:58,090
how we can serve static files in general

33
00:01:58,090 --> 00:02:01,140
and what exactly static files are

34
00:02:01,140 --> 00:02:05,350
before we then are going to make a major step forward

35
00:02:05,350 --> 00:02:08,680
by also diving into dynamic files

36
00:02:08,680 --> 00:02:11,980
and how we can work with so-called templates

37
00:02:11,980 --> 00:02:15,580
to generate dynamic HTML content

38
00:02:15,580 --> 00:02:18,300
that can differ for different users

39
00:02:18,300 --> 00:02:21,530
and different points of time on the server

40
00:02:21,530 --> 00:02:24,300
with our Node Express code.

41
00:02:24,300 --> 00:02:27,793
So plenty of content to cover, let's dive right in.

