1 00:00:00,500 --> 00:00:02,660 Hello and welcome to this video. 2 00:00:03,170 --> 00:00:11,930 In this video, I'm going to be configuring the light server to begin, I'm going to create a file in 3 00:00:11,930 --> 00:00:14,720 the root of the project directory. 4 00:00:14,750 --> 00:00:20,960 This is going to be some file that will contain the configuration for the light server. 5 00:00:21,320 --> 00:00:27,770 So I'm going to click on the name of the project directory may show highlighted and then click into 6 00:00:27,770 --> 00:00:32,780 it and click on this plus sign here to create a new file. 7 00:00:33,240 --> 00:00:42,920 So I've called the file based config the JSON presenter, and you can see here it is in the root of 8 00:00:42,920 --> 00:00:44,480 the project directory. 9 00:00:44,510 --> 00:00:48,740 I've got some JSON data inside the configuration file. 10 00:00:49,460 --> 00:00:53,630 JSON data is basically retained in the name and then the value. 11 00:00:54,050 --> 00:00:58,970 So here online line to the name is open and the value is false. 12 00:00:59,420 --> 00:01:09,440 I've set this value to force because when the light server runs automatically on startup, it will launch 13 00:01:09,620 --> 00:01:11,360 the default browser. 14 00:01:11,870 --> 00:01:15,170 So I don't want it to launch the default browser. 15 00:01:15,170 --> 00:01:22,400 So I've set the value that when it opens up, it should not launch the default browser. 16 00:01:22,820 --> 00:01:30,680 As I've said, that value to force the next step in the configuration is to tell the light server where 17 00:01:30,680 --> 00:01:39,110 to look for these files for our project, where it's going to serve them from Siddhu that we have a 18 00:01:39,110 --> 00:01:44,090 server object on line number three here and line them up for. 19 00:01:44,420 --> 00:01:53,150 We have a property which is called Base Directory for Short, just abbreviated it to air. 20 00:01:53,780 --> 00:02:01,070 So this is where we specify the directory, where the light server is going to go to look for the files 21 00:02:01,280 --> 00:02:02,030 to serve. 22 00:02:02,630 --> 00:02:08,240 So you can call it anything you like, but I have called it public. 23 00:02:08,630 --> 00:02:15,440 I have not created this directory yet, but I'm going to create these track record public in the root 24 00:02:15,860 --> 00:02:17,180 of the project. 25 00:02:17,600 --> 00:02:23,900 So any files that I want for the project, if I want the lights, have to serve them. 26 00:02:24,290 --> 00:02:29,230 I have to place them inside this public directory. 27 00:02:29,240 --> 00:02:38,510 So now that I've defined a public directory, I need to create it, so I click on my project and then 28 00:02:38,510 --> 00:02:39,410 click inside. 29 00:02:40,130 --> 00:02:47,180 While that is highlighted and then select the option to create a new folder, and then I'm going to 30 00:02:47,180 --> 00:02:48,860 call this for the public. 31 00:02:49,190 --> 00:02:52,400 So I've created a new for the public's eye presenter. 32 00:02:52,790 --> 00:02:58,280 I can see that folder is in the root of the project directory. 33 00:02:58,610 --> 00:03:02,240 So any files are placed in this very critical public. 34 00:03:02,690 --> 00:03:06,680 The likes of is going to serve that file. 35 00:03:06,710 --> 00:03:13,910 One more configuration I need to do is inside the package to JSON files, so I click on the potato JSON 36 00:03:13,910 --> 00:03:17,780 file on the the scripts after line number seven. 37 00:03:17,780 --> 00:03:20,420 Here I'm going to add the comma. 38 00:03:20,720 --> 00:03:29,240 I'm going to add an entry for the light server, so I'm just going to paste in there, so it's going 39 00:03:29,240 --> 00:03:30,510 to be called serve. 40 00:03:30,620 --> 00:03:38,030 So this entry course is going to be responsible for calling the light server. 41 00:03:38,330 --> 00:03:41,780 I'm just going to save all the changes I've just made. 42 00:03:41,900 --> 00:03:49,100 So that's it for this video In this video, I set up a configuration for the light server. 43 00:03:49,490 --> 00:03:50,390 Thanks for watching.