Create node.js app that synchronizes contacts and tickets from Hubspot to MySQL/MariaDB database.
Use sequelize npm package for database communication.
https://www.npmjs.com/package/sequelize
This synchronization process will run periodically in 10 min intervals. Optimize this process for synchronization of large amounts of contacts/tickets. You can use any project structure you want. Create at least two tables in DB: contacts and tickets (you can create additional tables if you need them) DB schema is up to you.
https://legacydocs.hubspot.com/docs/methods/contacts/contacts-overview
Contact fields to sync from Hubspot:
vid firstname lastname createdate
https://legacydocs.hubspot.com/docs/methods/tickets/tickets-overview
Ticket fields to sync from Hubspot:
id content
For development, you will only need Node.js and a node global package, Yarn, installed in your environement.
-
Just go on official Node.js website and download the installer. Also, be sure to have
git
available in your PATH,npm
might need it (You can find git here). -
You can install nodejs and npm easily with apt install, just run the following commands.
$ sudo apt install nodejs $ sudo apt install npm
After installing node, this project will need yarn too, so just run the following command.
$ npm install -g yarn
$ git clone https://github.com/AkihitoVM/IntegrationHubSpot.git
$ cd IntegrationHubSpot
$ yarn install
$ yarn start