Skip to content

Microservice to generate Invoice/PDF and upload to S3

Notifications You must be signed in to change notification settings

fisshy/invoicer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservice to generate Invoice/PDF and upload to S3

built upon mustache and node-html-pdf

Install

$ npm install

Test

$ npm test

Environment

AWS_ACCESS_KEY_ID,
AWS_SECRET_KEY,
AWS_S3_INVOICE_BUCKET

Generate invoices and upload to Amazon S3

$ npm start
curl -X POST -H "Cache-Control: no-cache" -H "Postman-Token: 7ee0f435-0c82-d90f-5845-9dea08b023bb" -d '{
	"name": "Joachim",
	"fileName": "test.pdf"
}' "http://localhost:8082/invoice/s3"

Result

{
  "success": true,
  "url": "https://{{yourBucket}}s3-eu-west-1.amazonaws.com/test.pdf"
}

Swedish invoice

alt text

About

Microservice to generate Invoice/PDF and upload to S3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published