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;
})
docker-compose up -d