Thursday, 18 May 2017

http node listen on AWS lambada useing from my web site

is it possibal to create and app server on amazon AWS lambada serveses? like this hello world function?

var http = require('http');

http.createServer(function(request, response) {
  response.writeHead(200);
  response.write("Hello, this is Eric");
  response.end();
}).listen(8080);

and how i test it? and call it from my web site?

what is the URL of this function?



via royb

No comments:

Post a Comment