Automatically checks the nearest available delivery date from Frisco shop and - if it is within the next 7 days - pushes notification to a slack channel
Structure of the .env file
NODE_ENV=development
FRISCO_LOGIN=loginToFriscoShop
FRISCO_PASSWORD=PasswordToFriscoShop
GOOGLE_CHAT_WEBHOOK_URL=https://chat.googleapis.com/v1/spaces/webhookUrlProvidedByGoogleChatAPI
Be sure to swap them with your own data.
The script can be automated using free Heroku account.
To host the script on Heroku, you will need to:
- Add content of the .env file as Config Vars (replace NODE_ENV value to production)
- Add Puppeteer buildpack to Heroku (
https://github.com/jontewks/puppeteer-heroku-buildpack
) - Add Heroku Sheduler Add-on and configure it (Heroku DevCenter User Guide)