Setting up Eclipse IDE for node.js development
Tl;dr: Let’s setup our Eclipse for node.js with the help of the great nodeclipse project.
We all know how helpful a good IDE setup is for your development workflow. One very common IDE for webworkers is Web-/PhpStrom from JetBrains. They have some great and handy tools, like node.js integration.
Well, i’m used to Eclipse for years and since i’m eager to work on some node.js projects in my sparetime i had to set it up for node.js development.
My recommendation so far is: Use nodeclipse.
It’s probably best to use the Eclipse Java EE version of eclipse, since it has elementary plugins like git support preinstalled. After starting Eclipse (you need a Java RE), just goto Help-Install New Software and add the nodeclipse update site http://www.nodeclipse.org/updates/ . There should be the .Features Set group with a Features included in Enide Studio option. Use that and feel free to check everything else you consider useful. I like the StartExplorer Feature addon, which allows you to easily open your shell in the current path, very useful if you consider using grunt, which you should.
This setup allows you to create node.js project with New-Project-Nodeclipse-Node.js Project, as well as debugging of your node.js server component.
I’m going to elaborate on the debugging feature, in conjunction with using grunt for your dev-server in a later post!