Hacker News new | ask | show | jobs
by krmmalik 5577 days ago
I'm new to programming and learned a little bit of javascript lately. I'm going to do a mini project on Node just to give myself an excuse to learn more programming.

If you dont mind my asking, how would i go about using CoffeeScript with Node?

1 comments

If you build those simple 1-file-testservers with node, simply write them in coffee and then start them like "coffee myserver.coffee".

If it's more elaborated, you might want to set up some kind of build process and then use the generated js files. You could use a simple Makefile and compile your coffee files with coffee -c -b.

Oh, i forgot: You can add the --watch switch and get your scripts compiled on save.
I'll try that. Thanks!