HubSpot-nodejs search results paging sample app

September 19, 2023 ยท View on GitHub

This is a sample app for the hubspot-nodejs SDK.

Please see the documentation on Creating an app in HubSpot

Intent of this sample is to show how to paginate over search results if number of total objects that match search criteria exceeds api limit of 10 000.

Setup App

Make sure you have Docker installed. Make sure you have Docker Compose installed.

Configure

  1. Copy .env.template to .env
  2. Paste your HubSpot Client Id, HubSpot Client Secret and Contacts Search Query as the value for HUBSPOT_CLIENT_ID, HUBSPOT_CLIENT_SECRET and CONTACTS_SEARCH_QUERY in .env

Running

The best way to run this project (with the least configuration), is using docker cli.

docker-compose up --build

You should now be able to navigate to http://localhost:3000 and use the application.