Integrating Postman into NodeJS app


Postman generated NodeJS - Axios code for me :

var axios = require('axios');

var config = {
  method: 'get',
  url: 'http://localhost:3009/api/get-products',
  headers: { }

.then(function (response) {
.catch(function (error) {

and I created a test code like so …

let template =`

<link rel="stylesheet" href="" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

{{#each response}}
<div class="card" style="width: 18rem;">
  <img class="card-img-top" src="{{product_main_image_url}}" alt="Card image cap">
  <div class="card-body">
    <h5 class="card-title">{{product_title}}</h5>
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
    <a href="#" class="btn btn-primary">Go somewhere</a>

<script src="" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
    <script src="" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
    <script src="" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>


pm.visualizer.set(template, {response: pm.response.json()});

Where should I put both codes in my NodeJS app ?

What are dependencies I need to install for this ?

Any documentation for this elsewhere ?