Setting up with
This will install packages locally into
$ cd /path/to/thumbp/dir $ npm install
Installing for development or testing
$ npm install -g mocha $ mocha
This runs the application locally on port 8080 without detaching from your console:
$ node thumbp.js http://es_loadbal:9200/dpla_alias/item 8080
Example thumbnail given that invocation:
- Improve logging
- We may want to pass through more headers, like Last-Modified, although this is intended to run behind a reverse proxy like NGINX with aggressive caching being forced.
- We may want to observe If-Modified-Since and pass back 304 responses from the upstream to the client.