1 00:00:00,800 --> 00:00:06,980 So now what we need to do is that we need to get these products from the database and display these 2 00:00:06,980 --> 00:00:08,990 products here from. 3 00:00:09,350 --> 00:00:11,780 We need to get them from the database and display that here. 4 00:00:12,050 --> 00:00:16,340 And in order to do that, we need to connect to the database and get these products. 5 00:00:16,940 --> 00:00:20,690 So here as well, we need to get these products here as well. 6 00:00:20,700 --> 00:00:23,330 We need to get these products and to do all of this. 7 00:00:24,140 --> 00:00:30,140 The first step is that first, we need to make sure that your Apache server is up and running in your 8 00:00:30,140 --> 00:00:30,570 database. 9 00:00:30,590 --> 00:00:32,330 My old database is up and running. 10 00:00:32,960 --> 00:00:37,300 The next step is that we need to convert the index into BHP. 11 00:00:37,760 --> 00:00:43,260 So I'm going to rename this file and this file is no longer going to be index at that email. 12 00:00:43,580 --> 00:00:46,190 It's going to be index that BHP. 13 00:00:47,610 --> 00:00:48,150 And. 14 00:00:49,210 --> 00:00:54,550 And we no longer can run this file like this. 15 00:00:54,550 --> 00:00:56,500 We cannot just open it in the browser like this. 16 00:00:57,010 --> 00:00:58,600 Instead, we should. 17 00:00:59,260 --> 00:01:05,710 From now on, we need to click on View and the Terminal, and then we need to run the server because 18 00:01:05,750 --> 00:01:07,660 basically it runs only on the server. 19 00:01:08,110 --> 00:01:19,510 So we need to say here BHP minus capital S and then local costs and then call 8000. 20 00:01:20,170 --> 00:01:25,060 So you need to type this command, this command, you need to type this command in the directory of 21 00:01:25,060 --> 00:01:25,750 your project. 22 00:01:26,290 --> 00:01:30,700 And I'm using here, as you can see, I'm using the terminal that comes away with the Visual City code. 23 00:01:31,060 --> 00:01:38,320 If you chose to use another terminal, you need to make sure that you are pointing to your project folder. 24 00:01:38,590 --> 00:01:44,260 You need to make sure that you are in your project folder and then you type B minus S, minus capital 25 00:01:44,260 --> 00:01:49,420 S and then localhost colon 8000 when hit enter this. 26 00:01:49,750 --> 00:01:54,180 This is going to start a server and here it says development server. 27 00:01:54,190 --> 00:01:55,480 The server started. 28 00:01:55,840 --> 00:01:58,390 Now we can copy this line. 29 00:01:58,480 --> 00:02:05,530 This you are l localhost on 8000 and then in the browser let me close this. 30 00:02:05,530 --> 00:02:09,070 We can we no longer we we no longer can open this. 31 00:02:09,070 --> 00:02:15,520 I'm going to close this and then here I'm going to basically what l which is SDP and then going for 32 00:02:15,520 --> 00:02:18,760 a slash for slash localhost going 8000. 33 00:02:19,210 --> 00:02:26,800 Now if I hit enter, guess what I'm going to get I'm going to give the same exact but I'm going to give 34 00:02:26,800 --> 00:02:27,520 the same exact look. 35 00:02:27,970 --> 00:02:36,700 But the difference is that now I'm using page, but now we are working with the server, so now we are 36 00:02:36,700 --> 00:02:37,180 good to go. 37 00:02:37,690 --> 00:02:45,340 So this is a very important step that you need to do, which is which is running your server and going 38 00:02:45,340 --> 00:02:47,830 to the server in order to make sure that your server is up and running. 39 00:02:50,110 --> 00:02:57,130 And also make sure that you have converted your index that it would email to index that BHP.