Skip to content

Instantly share code, notes, and snippets.

@jodevsa
Created January 16, 2017 16:33
Show Gist options
  • Save jodevsa/a47e834659a869283663fba0412a911f to your computer and use it in GitHub Desktop.
Save jodevsa/a47e834659a869283663fba0412a911f to your computer and use it in GitHub Desktop.
'use strict'
const express = require('express');
const path = require('path');
let app = express();
let port=8080;
let pdfFilesLocation='/home/jodevsa/pdf_streamer/public/pdf/';
app.use(express.static(path.join(__dirname, 'public/ViewerJS')));
app.use(express.static(path.join(pdfFilesLocation)));
app.listen(port);
console.log("streaming on port:"+port);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment