PhantomJS + Express PDF Generation Microservice

This example probably requires Node v7.9.0+

Dependencies

Installation and Usage

Install npm packages

npm install

Run server

node server.js

Once you run the server, you can access it like so (default configuration):

http://localhost:3000/?url=http://stackoverflow.com&w=1024&h=768

Configuration

This project uses dotenv. Drop a file called .env file in the root of the project.

The following configuration options are supported:

PORT=3000
USERNAME=pdf
PASSWORD=gimme