Webstorm is present as a JS development IDE and supports the popular JS frameworks such as node. js and jquery. node. JS is simply a JS class library and is equipped with Google's V8 JS engine to parse and execute JS scripts.
That webstorm+node.js such a combination, used to develop the application based on node. JS platform is the most convenient, and can know webstorm this IDE environment for JS Support is gray often powerful, intelligent hints, breakpoints debugging, view source code and so on functions.
Similar to other development environments, here is a brief description of how to build a development environment and complete a demo instance.
1. Download the different versions of the installation package according to your personal circumstances and install the node. JS Environment. The installation steps are simple, do not need to configure and modify anything, all go the default route.
2. After installing node. js with no exception, click the node command under CMD and test to see if node. js is installed successfully.
3. Install the Webstorm software (first download OH), after the installation is successful, you need to configure node. JS:
1) Click the [JS] icon to retrieve the locally installed node. js by default in the popup configuration box, or manually select the appropriate file directory.
2) Sources of node. js Core Modules: Refers to the configuration source file path, the node. JS source code extracted after the path is configured to this.
4. Next, we can create a HelloWorld Demo with new project. Output a "HelloWorld" in the Helloworld.js (Console.log ("Hello World").
5. Once the JS file is ready, you need to config it again to see the green Inverted triangle button that we used to develop Java Project in eclipse.
Once configured, clicking the green button invokes the node command line to resolve the current project's main file.
You can see the output in the Console tab on the lower side of the IDE:
-
"C:\Program Files\nodejs\node.exe" helloworld.js
-
Hello World
Here, Webstorm+node.js's development environment was built successfully.
Self-study node.js:webstorm+node.js development environment configuration