Requirements
- An admin backend running on forest-express-sequelize
- superagent npm package
- a Hubspot account
How it works
Directory: /forest
This directory contains thehubspot-companies.js file where the collection is declared.
Directory: /routes
This directory contains thehubspot-companies.js file where the serializer for the collection and logic to get records is defined.
Companies information are obtained by making a get all companies call to the Hubspot API.
The Hubspot API key is defined in the
.env file and requested through the expression process.env.HUBSPOT_API.