Skip to main content

Create a New NodeJS Project

Ensure NodeJS is installed​

Node JS logo

We're not going to get very far without the NodeJS package and its compiler, so at the terminal or command prompt type:

node --version

You should see something like:

v14.x.x

If not go to http://nodejs.org and follow the instructions to install NodeJS.

Create a folder​

We suggest creating a new folder for this project, say legalesign-example:

mkdir legalseign-example
cd legalesign-example

Initialize Node​

Then we'll initialize this as a new node project. Type the following at the terminal:

npm init
npm install @aws-sdk/credential-provider-cognito-identity

Now we are ready to begin writing some code.