
1\. In the CLI, navigate to the location where you want to start your node.js application.

```
cd location/for/project
```

2\. Create a new folder for your project.

```
mkdir paylinkGettingStarted
```

3\. Navigate into the folder you created.

```
cd paylinkGettingStarted
```

4\. Create a default `package.json` file.

```
npm init -y
```

5\. Save a copy of the connectfi_payment_link_example.tgz file in the root folder of the project directory.

6\. Install the connectfi_payment_link_example.tgz file by using the following CLI command in your project directory.

```
npm install connectfi_payment_link_example-1.0.0.tgz --save
```

7\. Create a new file in your project directory with the following code.

```
// paylinkGettingStarted/your_file_name.js

const { startServer } = require('connectfi_payment_link_example');
```

8\. Set CONNECTFI_CLIENTID, CONNECTFI_PASSWORD, and CONNECTFI_BASE_URL in a .env file in the root folder of your project.
(Speak to a support representative to be issued client credentials and URL after 
receiving access to the sandbox.)

9\. Start the example walkthrough by using the following CLI command in your project directory.

```
node your_file_name.js
```

10\. This will create a server that is listening on port 8000. Go to http://localhost:8000/merchantSetupExample and follow the instructions to complete the walkthrough.
