phantomjs-web-service

Usage

 brew install phantomjs
 phantomjs ./src/phantom.js

default port 8081, change port

 phantomjs ./src/phantom.js 8080

and in your project request http://localhost:8081

you can copy 'request-promise.js' to your project,

then

	request(url)
		.then($ => {
			console.log($);
		})
		.catch(err => {
			throw err;
		})

Use Docker

docker-compose up -d