This feature is only supported in the Ultimate edition.
The following is only valid when Node.js Plugin is installed and enabled!
In this section:
- Node.js
- Configuring Node.js Interpreters
- Running and Debugging Node.js
- Running Nodeunit Tests
- V8 CPU and Memory Profiling
- Pug (Jade) Template Engine
Node.js
is a lightweight runtime environment for executing JavaScript on the server side.
IntelliJ IDEA integrates with Node.js providing assistance in configuring, editing, running, debugging, testing, profiling, and
maintaining your applications.
To get guidance in Node development, see HowToNode.org
.
Before you start
-
Download and install the Node.js
runtime environment.
- Install and enable the NodeJS plugin. The NodeJS plugin is not bundled with IntelliJ IDEA, but it can be installed from the JetBrains plugin repository as described in Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling Plugins.
Quick start with a Node.js application
IntelliJ IDEA makes it easier to create, run, debug, and test Node.js applications.
Here we will use a simple Express application
as an example.
To create an application
- Choose on the main menu or click the New Project button on the Welcome screen.
- In the Project Category and Options dialog, which is the first page of the New Project wizard, choose Node.js and NPM in the left-hand pane.
- In the right-hand pane, choose Node.js Express App and click Next.
- On the second page of the wizard,
specify the project folder, the Node.js interpreter,
and the version of express=generator
to use.
In the Options area, choose the template and the CSS to use.
If you have only one version of Node.js installed and you followed the standard installation procedure, IntelliJ IDEA detects your Node.js automatically. Otherwise, choose the relevant interpreter from the drop-down list. Learn more at Configuring Node.js Interpreters.
- When you click Finish , IntelliJ IDEA generates a Node.js Express-specific project with all the required configuration files.
See Also
Procedures:
Reference:
- Plugins Settings
- Node.js and NPM
- Run/Debug Configuration: Node.js
- Run/Debug Configuration: Attach to Node.Js/Chrome
- Run/Debug Configuration: NodeUnit
External Links: