Skip to content

liddiard/mailpdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mail a PDF Online

Setup (Dokku)

  • Install Ghostscript in your container
  • Set the following required environment variables:
    • LOB_API_KEY_TEST
    • LOB_API_KEY
    • STRIPE_API_KEY_TEST
    • STRIPE_API_KEY
    • SENDGRID_API_KEY
    • ADMIN_EMAIL (email address for admin alerts)
  • Set Nginx max upload size to the max upload size specified in (app.js) by following this example
  • Set up a one-off process to delete old uploads. This example deletes files older than 1 day: find static/uploads/* -mtime +1 -exec rm {} \;.

Routes

  • POST /upload
  • POST /verify_address
  • POST /checkout
  • GET /track/{packageID}

Todo

About

Online service to mail a PDF document anywhere in the U.S. under 60 seconds.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published