1
00:00:01,000 --> 00:00:05,050
Now, to demonstrate what I was talking about

2
00:00:05,050 --> 00:00:08,526
and to show you these different kinds of data and action.

3
00:00:08,526 --> 00:00:11,530
I prepared another project for you,

4
00:00:11,530 --> 00:00:14,244
which we're going to dockerize and what you find attached

5
00:00:14,244 --> 00:00:16,600
to this lecture as a subfile.

6
00:00:17,440 --> 00:00:19,594
It's another note JS example

7
00:00:19,594 --> 00:00:23,720
and its generally a simple application.

8
00:00:23,720 --> 00:00:27,610
In my node server, I have a couple of routes

9
00:00:27,610 --> 00:00:29,810
a couple of supported requests,

10
00:00:29,810 --> 00:00:32,210
you could say, which I wanna handle.

11
00:00:32,210 --> 00:00:34,502
And if you would run this application

12
00:00:34,502 --> 00:00:36,580
which we're going to do later,

13
00:00:36,580 --> 00:00:38,920
you would be presented with this form

14
00:00:38,920 --> 00:00:40,787
which allows you to enter some feedback.

15
00:00:40,787 --> 00:00:44,767
And as part of the application when feedback is submitted,

16
00:00:44,767 --> 00:00:48,440
that feedback is stored in a file.

17
00:00:48,440 --> 00:00:51,770
To be precise it's stored in two files.

18
00:00:51,770 --> 00:00:56,227
A temporary file, which is stored in a temporary file path.

19
00:00:56,227 --> 00:00:59,460
Then I check whether that file already exists

20
00:00:59,460 --> 00:01:03,640
in the final path where I wanna store it ultimately.

21
00:01:03,640 --> 00:01:05,792
And then if it does not exist yet,

22
00:01:05,792 --> 00:01:08,460
I'm going to copy the temporary file

23
00:01:08,460 --> 00:01:11,310
over to the final file path.

24
00:01:11,310 --> 00:01:14,350
And the generated file simply contains the feedback

25
00:01:14,350 --> 00:01:16,020
that was submitted.

26
00:01:16,020 --> 00:01:17,770
This is what this application does,

27
00:01:17,770 --> 00:01:20,170
with some node express code.

28
00:01:20,170 --> 00:01:23,060
And besides this server chase file

29
00:01:23,060 --> 00:01:25,230
we got a couple of folders here.

30
00:01:25,230 --> 00:01:28,820
We got the pagers folder with some HTML pages,

31
00:01:28,820 --> 00:01:31,541
which are being sent back by the server JS file.

32
00:01:31,541 --> 00:01:34,190
So I'm sending this HTML pagers

33
00:01:34,190 --> 00:01:36,500
for different incoming requests.

34
00:01:36,500 --> 00:01:39,483
The feedback HTML file contains the form

35
00:01:39,483 --> 00:01:43,000
so this screen here, for example.

36
00:01:43,000 --> 00:01:46,960
And then we get the public folder with the styles file

37
00:01:46,960 --> 00:01:48,730
which is being hosted.

38
00:01:48,730 --> 00:01:51,120
But then more importantly we got the temp

39
00:01:51,120 --> 00:01:55,280
and the feedback folders which are empty initially.

40
00:01:55,280 --> 00:01:57,790
And the idea behind these folders

41
00:01:57,790 --> 00:02:01,020
is that the temp folder will store

42
00:02:01,020 --> 00:02:05,010
the temporary generated file with the feedback

43
00:02:05,010 --> 00:02:07,920
until we checked whether the file already exists

44
00:02:07,920 --> 00:02:09,800
in the feedback folder,

45
00:02:09,800 --> 00:02:12,440
and if the file does not exist yet

46
00:02:12,440 --> 00:02:15,080
it's going to be copied over.

47
00:02:15,080 --> 00:02:17,070
This is what this application does.

48
00:02:17,070 --> 00:02:19,697
And I created this application,

49
00:02:19,697 --> 00:02:24,120
because in this app we can't see all three kinds of data

50
00:02:24,120 --> 00:02:25,540
in action

51
00:02:25,540 --> 00:02:29,910
We got our application ofcourse, so the source code,

52
00:02:29,910 --> 00:02:31,630
we got temporary data,

53
00:02:31,630 --> 00:02:34,270
what we are going to store in the temp folder.

54
00:02:34,270 --> 00:02:37,330
for example, files which we are going to store

55
00:02:37,330 --> 00:02:39,424
which we're okay with losing.

56
00:02:39,424 --> 00:02:42,460
And we got permanent storage,

57
00:02:42,460 --> 00:02:44,330
that will be the files that will end up

58
00:02:44,330 --> 00:02:46,940
in the feedback folder in the end.

59
00:02:46,940 --> 00:02:49,330
So, we have all three kinds of data here

60
00:02:49,330 --> 00:02:51,127
and we're going to dockerize this up

61
00:02:51,127 --> 00:02:54,970
so that we see which problems we're facing at the moment.

62
00:02:54,970 --> 00:02:57,590
And then we are going to solve these problems

63
00:02:57,590 --> 00:03:00,770
with a couple of tools docker gives us

