Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

ashleydavis/pdf-server-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Example Node.js server that downloads a PDF file to a web app

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors