Hello and welcome to this video.
In this video, I'm going to be configuring the light server to begin, I'm going to create a file in
the root of the project directory.
This is going to be some file that will contain the configuration for the light server.
So I'm going to click on the name of the project directory may show highlighted and then click into
it and click on this plus sign here to create a new file.
So I've called the file based config the JSON presenter, and you can see here it is in the root of
the project directory.
I've got some JSON data inside the configuration file.
JSON data is basically retained in the name and then the value.
So here online line to the name is open and the value is false.
I've set this value to force because when the light server runs automatically on startup, it will launch
the default browser.
So I don't want it to launch the default browser.
So I've set the value that when it opens up, it should not launch the default browser.
As I've said, that value to force the next step in the configuration is to tell the light server where
to look for these files for our project, where it's going to serve them from Siddhu that we have a
server object on line number three here and line them up for.
We have a property which is called Base Directory for Short, just abbreviated it to air.
So this is where we specify the directory, where the light server is going to go to look for the files
to serve.
So you can call it anything you like, but I have called it public.
I have not created this directory yet, but I'm going to create these track record public in the root
of the project.
So any files that I want for the project, if I want the lights, have to serve them.
I have to place them inside this public directory.
So now that I've defined a public directory, I need to create it, so I click on my project and then
click inside.
While that is highlighted and then select the option to create a new folder, and then I'm going to
call this for the public.
So I've created a new for the public's eye presenter.
I can see that folder is in the root of the project directory.
So any files are placed in this very critical public.
The likes of is going to serve that file.
One more configuration I need to do is inside the package to JSON files, so I click on the potato JSON
file on the the scripts after line number seven.
Here I'm going to add the comma.
I'm going to add an entry for the light server, so I'm just going to paste in there, so it's going
to be called serve.
So this entry course is going to be responsible for calling the light server.
I'm just going to save all the changes I've just made.
So that's it for this video In this video, I set up a configuration for the light server.
Thanks for watching.