I was looking for a quick comparison of JavaEE and Node.js and came across a blog from StrongLoop that I thought did a good job of a quick comparison including an example for both.
In their post, they showed how to create a REST based web service using Java EE. This service returned a list of beers from the fantastic Pabst Brewing Company. Then created the same application using StrongLoop LoopBack and Node. With very little code in Node, they created a REST web service that returns the name and description of our beers. In addition, the LoopBack API also provides default actions for the entire CRUD process.
The table below shows some of the comparisons discussed in the blog:
|Great IDE support||Yes, multiple choices including Eclipse, Sublime and Idea||Yes, multiple choices including Visual Studio, Eclipse, Sublime|
|Enterprise ready||Yes, in use today||Yes, in use today|
|Large ecosystem of libraries||Yes||Yes|
|Common frameworks||Spring, JEE||Express|
|Testing Frameworks||Yes|| Yes