Gets all transaction data from Classy for a specific org and formats it and sends it to HubSpot.
- Make sure that an up-to-date version of node and NPM are installed.
- Run
npm run setup
. This will install all of the node packages and create an emptyhistory
directory. - Get the API keys from a fellow dev and add them to a
.env
file in the project's root directory. - Run
npm run start
from inside of this directory, ornode ./path-to-this-directory/src/index.js
from outside of this directory.
npm run test
will do the following:
- do a dependency check
- lint your code based on standard JS and make fixes where possible
- run tests in
test/index.js
ramda
is used heavily as the standard library.request
is used for handling HTTP requests.moment
is used for manipulating date/time.
All API errors will get written to json files in the history
directory.