i would like to host a nodeJS/mongoose/mongodb application in a cloud, and since EC2 has a MicroInstance that’s free for 1 year, my question is: Are there any step-by-step tutorials how can I get up and running nodejs/mongoose application in Amazon EC2?
i would like to host a nodeJS/mongoose/mongodb application in a cloud, and since EC2
Share
I used a couple of guides that really helped me out on putting a Node.js application on Amazon EC2.
The first one guides you through the creation of the instance and the installation of Node.js on that instance
How to setup Node.js on Amazon EC2 – Complete Guide
And then there’s another one which could also be helpful to you, it has some more details about how making the Node.js app available on port 80 by tweaking iptables to forward it to port 8080
How I got Node.js running on Amazon EC2
For MongoDB, there’s an official guide to se it up on Amazon EC2 on the official website
MongoDB on Amazon EC2
If you’re just prototyping an application you may also consider using the free tier (500 MB) on MongoLab for creating your MongoDB instance without any effort, that will also save some resources on your EC2 micro instance running the Node.js application.