Reputation: 63
I have a working javascript with an endpoint on Runkit. It responses to HTTP JSON requests. However, when I move this script to Ubuntu server - it doesn't respond to the requests. I guess it should be adopted for working on the external server. Is there any guidance online? Any help would be appreciated.
Upvotes: 0
Views: 55
Reputation: 63
Need to create an HTTP(s) server by yourself or use some frameworks, specifically designed for this purpose (e.x. Express, Koa, Hapi, etc.).
To make it listen all the time in background the one can use pm2 or forever, for example.
Upvotes: 0