Giter Site home page Giter Site logo

ashleydavis / pdf-server-example Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 149 KB

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

Home Page: http://bit.ly/2t2cJu2

License: MIT License

JavaScript 63.80% HTML 36.20%
nodejs expressjs node express pdf stream streaming streaming-response javascript

pdf-server-example's Introduction

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.

pdf-server-example's People

Contributors

ashleydavis avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.