Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.
/ pc-optimum Public archive

pdf generator for pcoptimum.ca

License

Notifications You must be signed in to change notification settings

aagavin/pc-optimum

Repository files navigation

Note repo is depratated: Use this instead https://github.com/aagavin/py-pc-optimum

============================================================================================== CodeFactor CircleCI Language grade: JavaScript

pc-optimum-pdf mailer

Send pdf of the webpage https://www.pcoptimum.ca/offers to an email using your provided smpt provider

Setup Locally

  • run npm ci

  • Setup the following envernment varables

    • E_USERNAME email server username
    • E_PASSWORD email server password (Should be application specific)
    • E_FROM email to use as the FROM feild in the email
    • E_TO email your sending the email to
  • Run using npm run start-local <pcoptimum.ca username> <pcoptimum.ca password>

eg. npm run start-local email@example.ca hunter2

Package

  • Setup the envernment varables up as outlined in the Setup locally section
  • Build using npm run build
  • run using npm run start <pcoptimum.ca username> <pcoptimum.ca password>

eg. npm run start email@example.ca hunter2