built upon mustache and node-html-pdf
$ npm install
$ npm test
AWS_ACCESS_KEY_ID,
AWS_SECRET_KEY,
AWS_S3_INVOICE_BUCKET
$ 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"
}