1
00:00:00,210 --> 00:00:06,360
In this video, we are going to create Node.js project with the ADB SRC package to interact with the

2
00:00:06,360 --> 00:00:07,740
dynamic DB APIs.

3
00:00:08,250 --> 00:00:13,680
For that reason, please open the pseudocode, create a new section folder and create a new lecture

4
00:00:13,680 --> 00:00:14,340
folder.

5
00:00:14,730 --> 00:00:21,240
So in this lecture folder, this will be our Node.js project and this will be the our Node.js project

6
00:00:21,240 --> 00:00:21,870
folder.

7
00:00:22,050 --> 00:00:28,050
You can rename it Dynamic DB, HDC Project Name or something else, but the idea is that we will use

8
00:00:28,050 --> 00:00:30,030
these folders as a Node.js project.

9
00:00:30,760 --> 00:00:37,050
In order to do that, we will run NPM commands to create package JSON in this folder.

10
00:00:37,060 --> 00:00:45,280
So I'm going to locate this folder structure in my terminal of the PowerShell and run the NPM in command.

11
00:00:45,580 --> 00:00:49,480
As you remember, that NPM command is create package JSON file.

12
00:00:49,850 --> 00:00:55,770
This why is why is provide to create package JSON file with default values.

13
00:00:55,780 --> 00:00:59,530
So please write npm in y and hit enter.

14
00:01:01,480 --> 00:01:08,340
So if you expand this lecture folder, you can see the package JSON file is created with default values.

15
00:01:08,350 --> 00:01:16,120
If you open the package JSON file, you can see the folder name that means project name and main file

16
00:01:16,270 --> 00:01:20,860
and other attributes that include from the default definition.

17
00:01:20,890 --> 00:01:24,760
The first thing we should do, adding type model information.

18
00:01:24,760 --> 00:01:31,120
So I'm going to write type and you can see that we have two options.

19
00:01:31,120 --> 00:01:35,230
We should set the model because we will use Postscript six.

20
00:01:35,230 --> 00:01:40,000
So that is required these module definition for the Node.js modules.

21
00:01:40,000 --> 00:01:44,320
So the first thing we should do, adding the type module into package JSON file.

22
00:01:44,440 --> 00:01:50,080
This provides to use a common script six quotes into our Node.js project, for example, import statements

23
00:01:50,080 --> 00:01:50,920
and so on.

24
00:01:50,950 --> 00:01:52,300
This is so important.

25
00:01:52,300 --> 00:01:53,350
Please don't forget.

26
00:01:53,530 --> 00:01:55,000
Don't forget this step.

27
00:01:55,000 --> 00:02:00,430
So now we can install the required SDK package for dynamic ADB interactions.

28
00:02:00,430 --> 00:02:04,810
In order to do that, please open the Dynamo DB API reference documentation.

29
00:02:04,810 --> 00:02:11,080
If you scroll down and come to installing path, you can see that there is different installation options.

30
00:02:11,080 --> 00:02:17,080
Since we are using the NPM package management, we should copy this line of code which is install a

31
00:02:17,470 --> 00:02:19,330
SDK client dynamo db.

32
00:02:19,510 --> 00:02:25,180
This is download only dynamo ADB interaction required package into our Node.js application.

33
00:02:25,180 --> 00:02:34,240
Come back to the our project file and in here at the same folder location, I'm going to run NPM Install

34
00:02:34,240 --> 00:02:37,060
and client dynamo DB package hit enter.

35
00:02:37,090 --> 00:02:43,390
This will be create required node modules and also update our package JSON file.

36
00:02:46,250 --> 00:02:46,610
Yes.

37
00:02:46,610 --> 00:02:53,000
As you can see that you can see not modules are created generated when running npm install command and

38
00:02:53,000 --> 00:02:58,780
if you open the package JSON file and if you scroll down you can see the dependencies added successfully.

39
00:02:58,790 --> 00:03:05,870
So now we are ready to import our client DB package and writing code in our Node.js application to interact

40
00:03:05,870 --> 00:03:06,830
with the Dynamo db.
