Skip to Content

In previous blog few useful tips for Node.JS were mentioned.

In this blog I am going to post guidelines on how to use IDE for developing Node.JS application.

You must have seen many tutorials, blogs, videos on Node.JS using plain text editor (e.g. Notepad, Notepad++) used for development of the application.

However now Enide version has been release with support for many javascript based developments like Node.JS, AngularJS, Phantom JS etc.


Prerequisites:


  1. JRE
  2. Appropriate Enide installation as per your OS: Currently installation is available for Windows(32bit and 64 bit), MacOS and Linux
  3. Node.JS runtime environment: Install Node.JS available for your OS. Here is the link to download appropriate version

  


Installation (windows version):


  1. Download Enide as per your OS. Here is the link to download.
  2. Extract the archive
  3. Double click on the eclipse.exe

Eclipse_Enide.PNG

Creating applications for Node.JS:

  1. From the menu select File-> New-> Project.
  2. From the list of in the wizard, navigate to Nodeeclipse

NodeEclipse.png

    3. Select either Node.js express project (uses express package) or just Node.js project

    4. Give a project name and select template as Hello World (for demo application)


NodeEclipsePrj.png

    5. Click on Finish. A Node.js project named NodeDemo will appear in explorer

NodeProject.PNG

As visible in the explorer, the IDE creates all the supporting files in the repository. Writing all these files manually would have required some time and efforts.

Running the applications


Enide IDE provides with multiple options to test the application. i.e. Node application, PhantomJS application. Right click on the application JS file (in our case hello-world-server.js) and select Run As->Node application.

RunApp.png

The application will be executed with Node.js and console will show the status of the application.

Console.PNG

The application can be tested in browser.


Output.png


Advantages of using IDE:


1. Efforts and time required for complex development is reduced.

2. One single IDE can be used for multiple developments

3. Node.js console is launched internally, so testing becomes easier

4. All the dependent and required files are created automatically 

5. Context help is available with Ctrl+Space.

ContextHelp.png

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply