alvarcarto / url-to-pdf-api

Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
MIT License
7.03k stars 779 forks source link

Use env-cmd to load .env file #108

Closed arcatdmz closed 4 years ago

arcatdmz commented 5 years ago

Thanks for providing such a great microservice implementation! This small pull request aims to make the local development slightly easier.

Currently, for local development, the user needs to load environment variables manually. This is particularly cumbersome on Windows PCs since the .env.sample assumes environments that can natively run bash.

By using env-cmd, there is no need for such a manual loading process and the README.md can be a little bit shorter.

arcatdmz commented 5 years ago

env-cmd: https://www.npmjs.com/package/env-cmd

kimmobrunfeldt commented 4 years ago

This is a great idea, thanks for introducing me to env-cmd!