This project uses the Bestbuy API to check the inventory status of the Nintendo Switch in an area based on zipcode. In general, this works with any Bestbuy product and you can adapt this by changing the product SKU in the index.js file.
- NodeJS
- AWS Account
- AWS Simple Email Service (SES)
- AWS CLI Version 1
- Bestbuy API Key
-
Clone the repository and cd into project
-
Set an environment variable of BBY_API_KEY to your key
-
Install node packages
npm install
-
Update the necessary fields:
sourceEmailAddr = The email address the reciever will see
destinationEmailAddrs = The email addresses that will be notified
zipcode - Your local zipcode ex. 98105
-
In AWS SES, verify all the e-mail addresses added to the fields above in the Email Addresses section
-
Run the NodeJS server
node index.js
AWS SES has a sending limit of 200 emails per day. Keep this in mind and only use for low inventory items.