This repository works with Toast's Order and Configuration APIs to produce an array or CSV file for importing into the DPHS ERP system.
- Install Packages
$ npm install- Create Configuration Files
$ touch credentials.json
$ touch properties.json- Add Credentials -
credentials.json
{
"hostname": "xx.xxxx.com",
"clientID": "xxxx",
"clientSecret": "xxxx"
}- Map Property GUIDs -
properties.json
{"000": "xxxxx"}- Run Program
$ npm start [property] [date]
$ npm start 000 2024-04-28