I am developing a Koa application, which is a new web framework designed by the team behind Express. Here is a step-by-step tutorial on how to deploy the koa.js application on your Amazon Web Service (AWS) ubuntu server.
Firstly, launch the ubuntu instance on AWS. Then you need to change the security group.
Otherwise if you hit the public domain in browser, it would stuck at “Connecting” state until timeout. And the site can’t be reached as shown as the screenshot below:
By default, the launch wizard group only has type ssh.
Click “Edit” button add HTTP port 80 and HTTPS port 443 inbound rule:
Secondly, ssh into your instance, install nodejs according to the official documentations: