1 00:00:00,730 --> 00:00:06,310 We've now successfully learned how to create a darker image in order to run red us on our machine locally. 2 00:00:06,370 --> 00:00:10,060 But there's still a lot to learn about creating image in running darker applications. 3 00:00:10,120 --> 00:00:12,860 So in this section we're gonna kick off a new project. 4 00:00:12,940 --> 00:00:19,480 The goal of this project is to create a tiny node J.S. web application rapid inside of a docker container 5 00:00:19,720 --> 00:00:25,570 and then be able to access that web application from a browser running on your local machine. 6 00:00:25,570 --> 00:00:27,750 We're not going to worry about deploying this app right now. 7 00:00:27,760 --> 00:00:32,580 We're just focused on getting know jazz to work inside of a docker container. 8 00:00:32,590 --> 00:00:36,830 Let me first begin by showing you a quick outline of some of the steps that we're going to go through. 9 00:00:38,000 --> 00:00:42,270 So the first thing we have to do is create an actual node Jazz Web application. 10 00:00:42,290 --> 00:00:47,480 Now if you don't have any experience with no J.S. and you're more of a Java person or Ruby or whatever 11 00:00:47,480 --> 00:00:48,140 it might be. 12 00:00:48,260 --> 00:00:49,580 That is totally fine. 13 00:00:49,580 --> 00:00:53,930 The code that we're gonna write for the javascript side of things is totally optional so you can either 14 00:00:54,170 --> 00:00:59,060 watch the video we're where we will put together the server or you can entirely skip it and you can 15 00:00:59,060 --> 00:01:03,240 just download the single file or one or two files that you're going to need. 16 00:01:03,260 --> 00:01:09,410 So if you don't know anything about no J.S. no problem whatsoever after we create the No j ust web app. 17 00:01:09,520 --> 00:01:11,890 Well then author a docker file. 18 00:01:11,890 --> 00:01:18,040 We're gonna make a docker file to create an image that is going to be used to run our web server inside 19 00:01:18,040 --> 00:01:19,360 of a container. 20 00:01:19,480 --> 00:01:21,610 So we're going to build the image from the docker file. 21 00:01:21,670 --> 00:01:26,380 We will run the image as a container on our local machine and then we will make sure that we are able 22 00:01:26,380 --> 00:01:32,140 to connect to that running web application inside the container from our browser. 23 00:01:32,290 --> 00:01:37,420 Now last thing I want to mention here and this might be might be something makes you a little bit unhappy 24 00:01:37,460 --> 00:01:40,150 but I'm going to throw a disclaimer out here. 25 00:01:40,150 --> 00:01:43,780 We're going to do some things in this project a little bit wrong. 26 00:01:44,260 --> 00:01:49,210 So when we put together our Docker File we're going to make a couple of mistakes and we're doing this 27 00:01:49,270 --> 00:01:54,400 very much on purpose because these are going to be some mistakes that I really expect you to make when 28 00:01:54,400 --> 00:01:57,630 you start working on Docker on your own projects. 29 00:01:57,640 --> 00:01:59,680 So I want you to see these mistakes. 30 00:01:59,680 --> 00:02:03,600 I want you to see the error messages and I want you to learn how to fix them. 31 00:02:03,670 --> 00:02:07,800 So just quick disclaimer you know again we're gonna do things just a little bit wrong. 32 00:02:07,900 --> 00:02:13,390 Don't worry I will be very clear when we come across an error and I will say very very clearly hey we 33 00:02:13,390 --> 00:02:14,320 did this on purpose. 34 00:02:14,320 --> 00:02:16,480 Here's the mistake and here is how to fix it. 35 00:02:16,510 --> 00:02:21,160 I know that sometimes in a tutorial it's really frustrating when things are done incorrectly. 36 00:02:21,160 --> 00:02:25,270 I'm totally aware of that so I'm gonna make sure that these errors are as distinct and highlighted as 37 00:02:25,270 --> 00:02:26,380 possible. 38 00:02:26,410 --> 00:02:26,660 All right. 39 00:02:26,680 --> 00:02:28,620 So then mind let's take a quick break. 40 00:02:28,630 --> 00:02:29,830 When we come back the next section. 41 00:02:29,860 --> 00:02:34,660 We're going to start putting together this node J.S. web application so I'll see you in just a minute.