The development environment of the front-end project of a front-end and back-end project is set up

Code source https://gitee.com/zhangmrit/ruoyi-ant The yarn in it doesn't know what it is and doesn't know where it is running
Insert picture description here

The result of opening the project with ideal is as shown in the figure (there is no node_modules folder at this time)
Insert picture description here

Code modification:

  1. The content in the .env file is changed to that in .env.development (it should be similar to yml, which can be selected, but not found)
  2. Change line 56 of Package.json to "babel-eslint": "^7.2.3",
    https://blog.csdn.net/junjiahuang/article/details/105044564

Download node.js http://nodejs.cn/download/ and install it.
Insert picture description here

Edit configuration ->add new configuration->npm in Ideal The results are as follows
Insert picture description here

Command first executes with install and then generates the node_modules folder
Command and then executes with run after the server starts, you can access the front desk with a browser, and end
(delete the node_modules folder as soon as there is a problem, then install and then run)

After lunch, I asked about the development of the front desk. npm is similar to maven, node_modules is similar to the target folder, and node.js is similar to java. As for subsequent releases, you need to use other tools to package, and the folder can be placed on the server and used directly
The final effect is as follows
Insert picture description here

Finished in one morning~

Guess you like

Origin blog.csdn.net/wangduqiang747/article/details/109617321