In this video, we are going to create Node.js project with the ADB SRC package to interact with the
dynamic DB APIs.
For that reason, please open the pseudocode, create a new section folder and create a new lecture
folder.
So in this lecture folder, this will be our Node.js project and this will be the our Node.js project
folder.
You can rename it Dynamic DB, HDC Project Name or something else, but the idea is that we will use
these folders as a Node.js project.
In order to do that, we will run NPM commands to create package JSON in this folder.
So I'm going to locate this folder structure in my terminal of the PowerShell and run the NPM in command.
As you remember, that NPM command is create package JSON file.
This why is why is provide to create package JSON file with default values.
So please write npm in y and hit enter.
So if you expand this lecture folder, you can see the package JSON file is created with default values.
If you open the package JSON file, you can see the folder name that means project name and main file
and other attributes that include from the default definition.
The first thing we should do, adding type model information.
So I'm going to write type and you can see that we have two options.
We should set the model because we will use Postscript six.
So that is required these module definition for the Node.js modules.
So the first thing we should do, adding the type module into package JSON file.
This provides to use a common script six quotes into our Node.js project, for example, import statements
and so on.
This is so important.
Please don't forget.
Don't forget this step.
So now we can install the required SDK package for dynamic ADB interactions.
In order to do that, please open the Dynamo DB API reference documentation.
If you scroll down and come to installing path, you can see that there is different installation options.
Since we are using the NPM package management, we should copy this line of code which is install a
SDK client dynamo db.
This is download only dynamo ADB interaction required package into our Node.js application.
Come back to the our project file and in here at the same folder location, I'm going to run NPM Install
and client dynamo DB package hit enter.
This will be create required node modules and also update our package JSON file.
Yes.
As you can see that you can see not modules are created generated when running npm install command and
if you open the package JSON file and if you scroll down you can see the dependencies added successfully.
So now we are ready to import our client DB package and writing code in our Node.js application to interact
with the Dynamo db.