Once dependencies are installed, and the build has been run, several different scripts are produced
- Script that deletes all Headshots uploaded to a specific AWS S3 folder
- Script that generates a JSON file of the URLs asssociated with headshots on AWS
- Script that downloads images from URLs, transforms them via a greyscale, and then uploads them to AWS S3
- Script that downloads images from URLs, transforms them via a greyscale, and then writes them to the local disk
- Script that downloads images from URLs, , transforms them via a greyscale, and then writes the newly uploaded URLs to a Google Spreadsheet
This repository requires certain files and data to be present to function.
- Google Service Account credentials in the root of the repo, named
google-sa.json
- API data donwloaded in JSON, a sample of which can be found at
src/data/agents.sample.json
- Environment Variables in the
.env
file (a sample.env.example
file is provided for reference)
npm install
npm run build
npm run test
- Delete all headshots on specific AWS S3 bucket folder
npm run scripts:delete-headshots
- Generate JSON associated with uploaded photos to AWS S3
npm run scripts:generate-json
- Download, transform to greyscale, and upload images to AWS S3
npm run scripts:upload-aws
- Download, transform to greyscale, and write images to local disk
npm run scripts:write-disk
- Download, transform to greyscale, and write images to Google Sheet
npm run scripts:write-sheet