/hbs-to-pdf

Primary LanguageJavaScript

HBS to PDF converter

Overview

When working at one job, I was needed to render ALL emails that we were sending to users and give these emails to our support, so they can make the text and design better.

I had a really hard time with this assignment. There were simply no easy'n fast solution on the web, so I've decided to find one node library to solve this problem.

This repo is the result of that implementation.

Installation & Running

To run the project you will need node & one package manager like npm or yarn

To install dependencies, run:

$ yarn

or

$ npm install

Then, make sure you create one .env file at the project root folder. For this, I have leave one ".env.example" to be use as an example, inside it will be the environment variables needed.

After you've created the .env file, edit the "fileName" variable inside index.js and run with:

$ node index.js

PDFs files created by the script will be stored inside "pdfs" folder in the project's root.

Contact

Email: regisprogramming@gmail.com

LinkedIn, GitHub and GitLab profiles