![]() ![]() Even if you have several node projects, you can open them at the same time, and he will do unified management. This will start successfully, we can see a lot of information about this node process, and you can type other commands at the bottom, there is no conflict at all, you can also enter the relevant command in other command lines after closing the compiler. ![]() To use this intention, highlight the objects in the method, press Alt+Enter, and select Sort properties alphabetically. ![]() When you run this intention, it will reformat the code for all properties inside an object in alphabetical order. Global installation with the following command npm install pm2 -gĮnter the working directory, you can use the following command to open the node process, even if you close the compiler, it is still running pm2 start server\bin\www WebStorm 2022.3 includes a new intention to sort JavaScript and TypeScript objects alphabetically. Query this plugin in npm, you can see its related information Other commands, without the need to open another command line tool. Pay attention to the key -> "process management", then he can put the node in a process, enable it once, do not need to always open a command line to run, you can type at the same time. This is a very powerful plugin based on process management. Pm2 can open a lot of projects, if you start with node, you can only start one project. It should be noted that the playback symbol is directly enabled, and the red bug style next to it is debug mode, which can be used for breakpoint debugging. Not much to say, directly on the map, everyone should be able to see clearly.įind the template for node.js in default, then find the three paths and create the following in the course.Īfter configuration, you can start the node of this project directly by clicking the button in the upper right corner of webstorm. Before I used vscode, vscode is very lightweight, but webstorm for The debugging of node+vue front-end project is more convenient. Especially the 2018 version of the interface optimization and code typing user-friendly is very good. Webstorm is a tool that front-end development enthusiasts really like. The most important thing is to find the www file, then you can visited node server\bin\www 2.webstorm configuration startup entry Whether you use the system cmd command line or some of the IDE's own command line, such as webstorm's terminal, they are essentially the same.įirst of all, you have to enter your project project. Start by the command that comes with node.js Good, here are 3 ways to start and debug the node service: 1. The backend uses the Express framework, where the server contains my backend file, /server/bin/ The www file in this directory is the startup file of node. In order to facilitate code debugging, node and vue are placed in the same directory. Start the front-end attempt to mount, but if you want to debug the front-end, you must enable node to perform local database additions and deletions, and there are many ways to enable the node service, some of which are very convenient: When we are learning Node.js, we often use the framework like Vue to build the project, but we need to use it in the stage of code writing. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |