IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Node.js with DockerUltimate

Last modified: 02 June 2021

Required plugins:

JavaScript and TypeScript, JavaScript Debugger, Node.js, Docker- The plugins are available only in IntelliJ IDEA Ultimate, where they are enabled by default.

Node.js Remote Interpreter- Install the plugin on the Settings/Preferences | Plugins page, tab Marketplace. The plugin is available only in IntelliJ IDEA Ultimate.

Required plugins: JavaScript and TypeScript, JavaScript Debugger, Node.js, Node.js Remote Interpreter The plugins are available only in IntelliJ IDEA Ultimate. See Before you start below.

You can quickly bootstrap your Node.js application with Docker to run, debug, and profile it from IntelliJ IDEA. The IDE will take care of the initial configuration by automatically creating a new Dockerfile, building and running an image, syncing your source code, and installing npm dependencies in the container.

You can find some examples at Quick Tour of WebStorm and Docker.

Even with automatic configuration, you still need to bind the port on which your application is running with the port of the container. Those exposed ports are available on the Docker host’s IP address (by default 192.168.99.100). Such binding is required when you debug the client side of a Express application. In this case, you need to open the browser from your computer and access the application at the container host through the port specified in the application.