1
00:00:00,180 --> 00:00:06,720
In this video, we are going to create Node.js project with using S3 SDK package.

2
00:00:06,720 --> 00:00:13,830
So that means we are in this point and we are going to create Node.js application with using a SDK JavaScript

3
00:00:13,830 --> 00:00:17,030
libraries for S3 client libraries.

4
00:00:17,040 --> 00:00:18,540
So let's get started.

5
00:00:19,230 --> 00:00:26,250
For that purpose, please open, which is the code I have created separate lecture and section folder

6
00:00:26,250 --> 00:00:31,630
and in the command text I have copy and paste the links that we use when we are interacting.

7
00:00:31,680 --> 00:00:35,460
Amazon S3 Here you can see the API reference documentation.

8
00:00:35,490 --> 00:00:37,940
Here is the all actions of the S3.

9
00:00:37,950 --> 00:00:45,630
So now basically we will use this lecture folder as a Node.js application, and that means we will create

10
00:00:45,630 --> 00:00:49,560
new Node.js application into our lecture folder.

11
00:00:49,560 --> 00:00:55,910
And this will be part from the S3 interaction in this line of quotes using the SDK libraries.

12
00:00:55,920 --> 00:01:04,260
For that purpose, I'm going to locate this lecture and create a new package JSON file to create package

13
00:01:04,260 --> 00:01:04,890
JSON file.

14
00:01:04,890 --> 00:01:07,650
I'm going to use NPM command to do so.

15
00:01:07,650 --> 00:01:11,700
Please open a terminal and go to the correct folder.

16
00:01:14,670 --> 00:01:25,140
So this will be the lecture 233 and all three interactions will be handled in this folder because this

17
00:01:25,140 --> 00:01:27,190
folder will be the Node.js application.

18
00:01:27,210 --> 00:01:32,760
In order to do that, I'm going to start with creating package JSON file to create package JSON file.

19
00:01:32,790 --> 00:01:38,190
You can run NPM in this command and click enter.

20
00:01:38,460 --> 00:01:43,050
So this will be create a package JSON file with default configurations.

21
00:01:43,050 --> 00:01:46,170
If you open this package JSON file, you can see the details.

22
00:01:46,200 --> 00:01:51,960
This is the basic package JSON file that is including the default values.

23
00:01:51,960 --> 00:01:58,560
And in this stage, the first thing we should do to do that, adding the type model information, this

24
00:01:58,560 --> 00:02:01,830
is very important and you know why it is very important.

25
00:02:01,830 --> 00:02:10,190
So that's why set the type as a module and save these packages and file these provide to use a script.

26
00:02:10,260 --> 00:02:13,170
Six Standard codes into our Node.js project.

27
00:02:13,170 --> 00:02:15,360
For example, we will use import statement.

28
00:02:15,360 --> 00:02:16,140
This is important.

29
00:02:16,140 --> 00:02:22,590
Please don't forget that after that we are going to install required S3 SDK package to communicate with

30
00:02:22,590 --> 00:02:23,400
the S3.

31
00:02:23,400 --> 00:02:30,060
For that purpose, I'm going to open the S3 client documentation, reference documentation and you can

32
00:02:30,060 --> 00:02:32,760
see the link and the URL in the command text.

33
00:02:32,760 --> 00:02:38,640
If you scroll down, you can see that this is the installation code that we can use NPM, install command

34
00:02:38,640 --> 00:02:45,480
and we will use client dash S3 package, copy this command and come back to our Node.js application

35
00:02:45,480 --> 00:02:46,560
and open terminal.

36
00:02:46,560 --> 00:02:52,680
Go to correct folder structure and paste this NPM install command hit enter.

37
00:02:54,510 --> 00:03:02,130
This will be create not modules folder and add required package into it and update the package JSON

38
00:03:02,130 --> 00:03:02,700
file.

39
00:03:03,570 --> 00:03:08,000
We will see these models, as you can see that created successfully.

40
00:03:08,010 --> 00:03:17,040
And if you go to package JSON file and go to dependencies, you can see that we have successfully installed

41
00:03:17,040 --> 00:03:21,420
required S3 client package into our Node.js application.

42
00:03:22,020 --> 00:03:22,320
Okay.

43
00:03:22,320 --> 00:03:28,170
Now we are ready to import a static client package into our code in order to interact with the Amazon

44
00:03:28,170 --> 00:03:32,280
S3 to perform these actions and to perform these use cases.
