1
00:00:00,210 --> 00:00:05,100
In this video, we are going to reading and writing a single item in dynamite.

2
00:00:05,700 --> 00:00:09,840
But before that, let's all be what we have done so far.

3
00:00:09,870 --> 00:00:19,110
Basically, we have created a Node.js application on our local computer, and we use a ADB SDK JavaScript

4
00:00:19,110 --> 00:00:23,760
version three SDK libraries to invoke dynamic ADB APIs.

5
00:00:24,180 --> 00:00:29,640
And after that, we will use node commands to perform these end to end architectures.

6
00:00:30,060 --> 00:00:37,200
So we have done for the first two use cases, which is the create dynamo DB table and listing, describing

7
00:00:37,200 --> 00:00:39,060
and deleting Dynamo DB table.

8
00:00:39,450 --> 00:00:46,020
So after that, we will continue with our use cases reading, writing, updating, query scan and particle

9
00:00:46,020 --> 00:00:46,980
crud operations.

10
00:00:46,980 --> 00:00:54,720
So if you feel so comfortable what we are doing in here, you can skip this section and skip the next

11
00:00:54,750 --> 00:01:00,850
hands on section, which is using the SDK libraries to perform hands on operations.

12
00:01:00,870 --> 00:01:07,320
But otherwise, I would suggest and recommend to continue with V to perform other use cases and see

13
00:01:07,320 --> 00:01:15,090
how we can use a Dynamo DB SDK package libraries in our operations, which is the use case of the read

14
00:01:15,090 --> 00:01:19,920
item, write, item, update, create and scan data and particle cloud operations.

15
00:01:19,920 --> 00:01:26,580
And we will use these commands to perform these operations, put item, update item, get item and delete

16
00:01:26,580 --> 00:01:30,130
item command when we are sending requests to our SDK package.

17
00:01:30,150 --> 00:01:32,850
So the idea is here, don't bother yourself.

18
00:01:32,850 --> 00:01:39,270
When you feel comfortable about using the HDC package, you can skip the next section, but since that

19
00:01:39,270 --> 00:01:45,390
time, please follow the use cases and try to implement in your computer and run the node commands and

20
00:01:45,390 --> 00:01:47,660
create Node.js application on your computer.

21
00:01:47,670 --> 00:01:54,030
Because in the next sections we will create our Node.js applications and deploy the Lambda functions

22
00:01:54,030 --> 00:01:57,920
to interact different services with different use cases.

23
00:01:58,030 --> 00:02:03,000
Okay, now let's get started to implement the other use cases to do that.

24
00:02:03,090 --> 00:02:08,310
First of all, we need to prepare our environment and after that we will create table again because

25
00:02:08,310 --> 00:02:14,430
in the last time we delayed our Dynamo DB table to perform, read, update and delete operations.

26
00:02:14,430 --> 00:02:21,810
So please open the pseudocode and see that I have create a new lecture folder and and from now on we

27
00:02:21,810 --> 00:02:24,090
will follow this folder structure.

28
00:02:24,120 --> 00:02:30,900
Since the section is completed, I have created any JavaScript files to perform other videos.

29
00:02:30,900 --> 00:02:35,430
So that's why this will be the final lecture folder for the section 20.

30
00:02:35,490 --> 00:02:42,780
So now in this folder I have created and following these steps that we follow in the last videos I have

31
00:02:42,780 --> 00:02:47,790
installed the required time ADB package and create dynamo ADB client object.

32
00:02:47,790 --> 00:02:51,210
And now we are going to develop actual code one by one.

33
00:02:51,210 --> 00:02:53,640
And after that we will run node commands.

34
00:02:53,640 --> 00:03:01,560
So to do that I have create a create table JS file to create our new table, which will will be the

35
00:03:01,560 --> 00:03:02,520
product table.

36
00:03:02,580 --> 00:03:09,510
You can go at the end of this command text and see that this time we will create a product table which

37
00:03:09,510 --> 00:03:16,350
ID should be the partition and the primary key for that purpose I have created to create table JS and

38
00:03:16,350 --> 00:03:22,590
these are the typical send method using the create table command and placing the parameters.

39
00:03:22,590 --> 00:03:29,310
If you see the parameters this time we have only one attribute which is the ID and this time it is number

40
00:03:29,310 --> 00:03:35,820
and ID is a primary and partition key and table name product and provisioned through retried capacity.

41
00:03:35,820 --> 00:03:37,710
You can see in these configurations.

42
00:03:37,710 --> 00:03:44,730
So as you can see that we should create our table first and after that we will perform, read, write

43
00:03:44,730 --> 00:03:46,530
and delete item in this table.

44
00:03:46,590 --> 00:03:52,410
To do that, please go to location of this folder structure and run the node command.

45
00:03:52,620 --> 00:03:58,830
I'm going to run create table command to create this table hit enter.

46
00:03:58,920 --> 00:04:01,860
As you can see, that table status is creating.

47
00:04:01,890 --> 00:04:08,340
To verify that, please open the console, go to tables, click to refresh button and make sure that

48
00:04:08,340 --> 00:04:11,160
you have created product table successfully.

49
00:04:11,190 --> 00:04:16,980
So in the next video we are going to implement read, write, update, query and you can operation on

50
00:04:16,980 --> 00:04:17,550
this table.
