Below mentioned are some general steps that you can follow to host a basic Node.js application running on EC2 Ubuntu instance:
1. launch an instance and SSH into it
2. Install Node.js using the following command:
sudo apt-get install nodejs
3. create a file named test_server.js with the following content:
require("http").createServer(function(request, response){
response.writeHeader(200, {"Content-Type": "text/plain"});
response.write("Hello World!");
response.end();
}).listen(8080);
4. Start the server using the following command:
node test_server.js