1.0.0 • Published 7 months ago
tuvoli-for-deployment v1.0.0
This is a project using Puppeteer to push trip data from Tuvoli to Scheduling Apps
The first two Apps will be: SchedAero and BART
Currently this app is designed to run a trip push to BART via a json file upload into an S3 bucket.
When uploading to aws, only zip necessary files, leave out package.json, i.e.:
$ zip -r tuvo-taughannock-bart-sql.zip index.js node_modules aaTripLogHelperFunctions.js awsHelperFunctions.js tripsData.js tripsLog.js bartCreate.js
This requires NodeJS to run and a hidden .env file
If no "package.json" file:
npm init -y
npm i chrome-aws-lambda , puppeteer-core@10.4.0, date-fns, country-iso-3-to-2, aws-sdk
If "package.json" file and no "node_modules" folder:
npm i
To run the app, enter this command in the console:
node index
Here is a great intro tutorial to Puppeteer
https://youtu.be/lgyszZhAZOI
1.0.0
7 months ago