News for hackers. Stuff that matters.
Re:Try Node.js for 2¢ or less in ~2 minutes by cosbynator on Thursday March 31, 2011 @10:28PM (#2394686)
Are there really that many people that want to code a Node.js app but can't set up an quick ubuntu image using virtualbox? EC2 as a dev environment seems a bit backwards.
Re:Try Node.js for 2¢ or less in ~2 minutes by jhuckestein on Thursday March 31, 2011 @11:29PM (#2394804)
I use EC2 for development (I commute via bike so I don't usually work offline) and it's the best environment I've ever coded in.

In fact, I can even code and fix things from my iPad, your iPad, anyones computer, my phone, a library kiosk or an airplane cockpit.

If I want to try something experimental (aka dist upgrade etc), I just clone the AMI, make my modifications, and if I like it, I keep it.

My emacs looks exactly the same, where ever I am. If I need to get to a different computer, I still log in through my EC2 instance, where all servers I need are accessible via convenient shortcuts and the appropriate port forwarding is configured already. And, again, I can do this from wherever I am.

How is that backwards?

Re:Try Node.js for 2¢ or less in ~2 minutes by cosbynator on Thursday March 31, 2011 @11:47PM (#2394842)
You make a good point, on second thought EC2 is a pretty good development environment as long as you aren't GUI dependent.

I still don't think it is a good development environment for someone that finds a node.js install too complicated. This seems to be what the article suggests.

Re:Try Node.js for 2¢ or less in ~2 minutes by nivertech on Saturday April 02, 2011 @06:59AM (#2399675)
AMI clone take too much time (esp. for non-EBS based instances).

I installed git on the AMI, so I can switch branches on the same AMI.

Re:Try Node.js for 2¢ or less in ~2 minutes by drivebyacct2 on Friday April 01, 2011 @01:32AM (#2395088)
How is that superior to having a nice desktop that you can shell/nx into?
Re:Try Node.js for 2¢ or less in ~2 minutes by AlexC04 on Friday April 01, 2011 @11:51AM (#2396709)
IMO - because it is hosted on the net and you can send the link to others.

I was just about to set up an EC2 micro with node and mongo this weekend.

I also get the opportunity to build a server, deploy in an environment that I can scale in "one day"

I think there are a lot of valuable skills to be gained by doing this for free and for fun right now, so that I can do it for a startup later on.

If I don't know how to build an EC2 system, I can't be confident in my ability to sell that skill later on.

Re:Try Node.js for 2¢ or less in ~2 minutes by jhuckestein on Friday April 01, 2011 @02:55AM (#2395254)
OTTOMH: create different configurations that you only need for one project, experiment with cutting edge software, increase CPU, memory and disk on the fly ...
Re:Try Node.js for 2¢ or less in ~2 minutes by drivebyacct2 on Friday April 01, 2011 @11:51AM (#2396707)
For a development environment? What?

Especially with node.js that simply doesn't make sense.

If you're running it with users on it which would actually need CPU, memory or disk, duh I would run it on EC2.

Re:Try Node.js for 2¢ or less in ~2 minutes by sthatipamala on Thursday March 31, 2011 @10:32PM (#2394695)
The great thing with EC2 is that you can let all your friends try your Node.js app by giving them a simple link. It's all about reducing the barrier to entry.
Re:Try Node.js for 2¢ or less in ~2 minutes by ericz on Thursday March 31, 2011 @10:34PM (#2394699)
For me the reason is two fold. Sharing the hacks I build is easier when I don't have to deal with NAT. Secondly, for some environments, like the default Amazon Linux AMI the default packages and PATH makes it a huge hassle to compile/install Node. This AMI was born out of our own frustration with that process which I'm sure affects Linux distros other than just the Amazon Linux one.

EDIT: Removed lingo abuse.

Re:Try Node.js for 2¢ or less in ~2 minutes by sausagefeet on Thursday March 31, 2011 @10:48PM (#2394732)
"real-time web apps"? C'mon, don't abuse the lingo man.
Re:Try Node.js for 2¢ or less in ~2 minutes by jrockway on Thursday March 31, 2011 @10:43PM (#2394718)
NAT? Who doesn't have IPv6 these days?

If I want to share my node app with someone, I just tell them to visit http://snowball2.jrock.us:4545/ and there we are.

(Really? -2? I am actually surprised that this is a problem. I have to share web apps with my friends, in both directions, regularly. It's never been a problem. Everyone has a publicly-routeable address these days.)

Re:Try Node.js for 2¢ or less in ~2 minutes by robflynn on Friday April 01, 2011 @01:09AM (#2395042)
Sadly, not all ISPs allow this. I run into this frustration whenever I visit my parents. They use a wireless ISP which does not provide each customer with a public facing IP. They all share the same public IP address and therefore can not receive incoming connections.

It's quite frustrating.

Re:Try Node.js for 2¢ or less in ~2 minutes by jrockway on Friday April 01, 2011 @01:47AM (#2395133)
Ah, but it's easy to get a publicly-routed IPv6 tunnel.
Re:Try Node.js for 2¢ or less in ~2 minutes by mwdev on Friday April 01, 2011 @05:41AM (#2395633)
Yes. They are called Windows users. And I am one of them. I set up an ec2 instance last week using a similar process. I also got a cywin up locally, but I use the ec2 instance mostly.

Now that you mention it, Virtual Box would be a great solution and it would be great to have a guide walking through this. I used google to figure everything out and 'node.js ec2' is a query you get to pretty quickly when you have no starting reference point.

Re:Try Node.js for 2¢ or less in ~2 minutes by jrockway on Thursday March 31, 2011 @10:42PM (#2394716)
This is easier than ./configure && make?
Re:Try Node.js for 2¢ or less in ~2 minutes by ericz on Thursday March 31, 2011 @11:03PM (#2394763)
The posts targets users not familiar with nix systems as well. Often times, it's not as simple as ./configure && make. There are dependencies that need to be satisfied and PATHs that need to be configured (depending on your distro). That was a huge headache for us when we first setup production servers on EC2.

I understand that it may seem silly to setup an EC2 account when the accustomed nix user can install Node much more easily, but hey, who doesn't like a year of free dedicated hosting thanks to Amazon?

Re:Try Node.js for 2¢ or less in ~2 minutes by jrockway on Thursday March 31, 2011 @11:44PM (#2394838)
The posts targets users not familiar with nix systems as well.

So the idea is to convince them to run servers connected directly to the Internet without any system administration skills? No wonder I get so much spam.

Somehow I think distributing binaries would be the logical solution to "node.js is hard to compile", not convincing people with no UNIX experience to pay Amazon $70 a month to let them run their very own server. But that's just me.

(I have personally compiled node from source on Debian and RHEL5. It was easy on both machines. The hardest part was to get waf to use all 32 cores on that RHEL machine for the build. But it's actually documented in the node docs!)

Re:Try Node.js for 2¢ or less in ~2 minutes by DTrejo on Friday April 01, 2011 @12:56AM (#2395004)
I think the idea is that for newcomers it will be free, because amazon is nice.

Also, according to other comments it seemed that paths were the problem, not binaries.

Re:Try Node.js for 2¢ or less in ~2 minutes by mwdev on Friday April 01, 2011 @05:35AM (#2395614)
I spent the past week getting node.js up and running. This guide helps a ton. Thanks for doing this.

On the other hand I've learned more about unix in the last week than I ever wanted to know. I'm now happily hacking away at my code on my ec2 instance using vim and all sorts of funky commands. I still have no idea what nginx is supposed to do, but I did figure out how to turn it off. Yeah, me.

So, if like me, you've never logged into a unix box, you may actually want to try one of the harder guides. It will teach you a ton.

Re:Try Node.js for 2¢ or less in ~2 minutes by cellis on Friday April 01, 2011 @12:07AM (#2394885)
May not be the place for this, but I'm curious what everyone is using as a node.js deployment workflow? I'm very tempted to stick to my old fabric fab file.
Re:Try Node.js for 2¢ or less in ~2 minutes by ladon86 on Friday April 01, 2011 @05:37AM (#2395621)
I'm using Capistrano, which is pulling my code from Github, with a bunch of custom scripts to minify my static assets and send them off to a CDN. If you've got a fab file that works for you, there's no reason not to stick with it.
Re:Try Node.js for 2¢ or less in ~2 minutes by jimmyjazz14 on Friday April 01, 2011 @12:12AM (#2394900)
Seems like passing out a small VirtualBox image with Linux and node installed on it already would be easier.
Re:Try Node.js for 2¢ or less in ~2 minutes by evan_ on Saturday April 02, 2011 @02:26AM (#2399376)
uh, no it doesn't
Re:Try Node.js for 2¢ or less in ~2 minutes by reustle on Thursday March 31, 2011 @10:45PM (#2394724)
Eric Zhang (NowJS guy) has been extremely active over the past few weeks. Kudos!
Re:Try Node.js for 2¢ or less in ~2 minutes by DTrejo on Thursday March 31, 2011 @10:15PM (#2394650)
Note: if you've never used EC2 before, you get a year of node for free!
Re:Try Node.js for 2¢ or less in ~2 minutes by dshankar on Thursday March 31, 2011 @10:07PM (#2394633)
This AMI is only for US West
Re:Try Node.js for 2¢ or less in ~2 minutes by cellis on Friday April 01, 2011 @01:46AM (#2395128)
i setup a ubuntu 10.10 64 instance in virginia; they're not charging me