Vue UI create Vue front-end project (Windows)

1. Open vue ui service

Shortcut key win+r to open cmd and enter the following command

vue ui

2. Access the vue ui interface

Open the browser and enter localhost:8080 in the address bar

3. Create the project

Click Create to
Insert picture description here
select the project directory you want to create, click Create a new project here,
Insert picture description here
enter the project name, package manager select npm, git command to fill in init project, click Next to
Insert picture description here
select manual
Insert picture description here

Remove format, select router, select use configuration file, click next and
Insert picture description here
click create project

Insert picture description here

Click to create the project without saving the preset

Insert picture description here

4. Add element-ui plugin

First click on the plugin in the left navigation bar, then click on the upper right corner to add a plugin
Insert picture description here
**search for element, first select the content in the rectangular box as shown in the figure, it does not matter if the version is inconsistent, then click on the lower right corner to install**
Insert picture description here
**After the installation is complete, click to complete the installation**
Insert picture description here

4. Add dependencies

  1. Add axios dependency
    Click on the left navigation bar to rely on, Insert picture description here
    click on the upper right corner to install the dependency
    Insert picture description here
    search box and enter axios, select the content as shown in the figure, and then click on the lower right corner
    Insert picture description here

  2. Install less-loader dependencies
    as shown above, enter less-loader in the search box, and then click install in the lower right corner
    Insert picture description here

3. Install less depends on the
same as the picture above, enter less in the search box, and then click install in the lower right corner
Insert picture description here

At this point, all the installation is over, then start the Vue project

4. Start the Vue project

Just operate as shown
Insert picture description here

5. Visit the Vue project

Enter localhost:8080 in the address bar of the browser,
if the interface is the same as the figure below, it means success
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_43967679/article/details/108829209