A console app that downloads menu and order files.
- Node.js v18.19.0
- Yarn 1.22.19
Create a copy of src/app/env.example.json
named env.json
and set the correct values. Alternatively, you can ask other contributors for the file.
yarn # shorthand for `yarn install`
yarn start:dev
yarn pkg:win # Outputs `pkg/win.exe`
yarn pkg:mac # Outputs `pkg/mac`
Files will be saved under files
folder.
files/menu.csv
- Downloaded via a cron job. The file is redownloaded every minute.
files/orders/ORDER_1106.xml
- Downloaded via AWS SQS.
The following queues must be created in order for the app to run:
{
"url": "https://some-bucket.s3.us-west-2.amazonaws.com/gk-files/ORDER_1106.xml",
"fileName": "ORDER_1106.xml"
}
Also see: sqs-names.ts