WEBVTT

00:00.320 --> 00:04.240
I skipped a few steps just not to bore you with NPM installation part.

00:04.740 --> 00:08.200
And then I added some dependencies and dev dependencies I would need for our

00:08.700 --> 00:12.560
project to work. You would see that I added the name, version description,

00:12.800 --> 00:16.440
the main script script section. I still drops out

00:16.940 --> 00:20.120
of license and I added the dependencies and app dependencies. You would

00:20.620 --> 00:24.000
still recognize that the script section was changed, but for

00:24.500 --> 00:27.380
now I will ignore it. I will not run it because we didn't discuss these

00:27.880 --> 00:31.060
files yet. And let's continue with the creation.

00:31.380 --> 00:34.820
So you would see that our project changed by adding

00:35.320 --> 00:39.220
the package log file to lock our dependencies and also added the node modules

00:39.300 --> 00:43.060
to actually store all of the packages we want to use. And also added

00:43.560 --> 00:47.740
the tsconfig JSON file to set up all of the properties compiler properties

00:48.240 --> 00:51.300
for TypeScript which we're going to use. This one is pretty default.

00:51.800 --> 00:55.260
So whenever you run the default command to create a TS config,

00:55.760 --> 00:59.340
that's the one you would have. So we will start by creating the source folder

00:59.840 --> 01:03.660
in which we will add a new file called index typescript.

01:04.380 --> 01:08.300
So as we already discussed, we will create an express app for our

01:08.800 --> 01:12.620
REST application and also we will add express

01:12.780 --> 01:16.340
router to separate different routes

01:16.840 --> 01:19.820
in our application. I will go deep dive in that in the next lesson.

01:20.380 --> 01:23.420
But to create a default setup we can start by asking

01:23.920 --> 01:24.700
GitHub copilot.

01:28.300 --> 01:31.940
So now we can see that the GitHub copilot generate

01:32.440 --> 01:35.980
a very basic application for us. So now we can check if it actually works.

01:36.220 --> 01:39.660
If you go back to the package JSON file you will see

01:40.160 --> 01:42.300
the start command. So let's do just that.

01:44.540 --> 01:48.170
Okay, so we started we see our server is running.
