Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1.05 KB

README.md

File metadata and controls

31 lines (18 loc) · 1.05 KB

pdf-server-example

This is an example Node.js server that can download a PDF file to the front-end web app.

Before running make sure you download and install Node.js and npm installed.

Before running make sure you have bower installed as follows:

npm install -g bower

You can clone this repo as follows:

git clone https://github.com/ashleydavis/pdf-server-example

Or you can download the zip file and unpack it on your PC.

After cloning please install modules:

cd pdf-server-example
npm install
cd public
bower install

You you can run it like so:

cd pdf-server-example
node index.js

Open your browser to http://localhost:3000 and you will get a web page that does a HTTP POST, retrieves the content of the PDF file and then downloads that content to a PDF file on your hard drive.

To support my work please share a link to my book Data Wrangling with JavaScript with your colleagues and networks.