1. Vue--The first vue-cli programThe development of Vue is based on NodeJS. The actual development uses Vue-cli scaffolding development, vue-router routing, and vuex for state management; for Vue UI, we generally use ElementUI (produced by Ele.me) or ICE (produced by Alibaba) to quickly build front-end projects~~ ElementUI ICE 1.1 What is vue-cli A scaffold officially provided by vue-cli, used to quickly generate a vue project template; The predefined directory structure and basic code are like when we create a Maven project, we can choose to create a skeleton project. This estimated project is the scaffolding, and our development is faster. Function of the project
1.2 Required environment
Confirm that nodejs is installed successfully:
npm is a software package management tool Install vue-cli npm install1 vue-cli -g #Test whether the installation is successful#See which templates can be used to create a Vue application. Usually we choose webpack vue list Tip: If the vue list query fails, please add the node_global target to the path environment variable 1.3 The first vue-cli program 1.3.1 Create a Vue project We just create an empty folder on the computer. I will create a new directory under drive D. 1.3.2 Create a Vue application based on the webpack template #1. First, you need to enter the corresponding directory cdE:\IDEACode\Vue\vue #2. Myvue here is the top name, you can name it according to your needs vue init webpack myvue Just select no all the way; illustrate: 1.3.3 Initialize and run cd myvue npm install npm run dev After the command is successfully executed, the following prompt will appear Open the port in the browser You can modify the port number and other configuration files in index.js SummarizeThis is the end of this article about the Vue Beginner's Guide to Creating the First vue-cli Program. For more information about the first vue-cli program, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Detailed explanation of how to use grep to obtain MySQL error log information
>>: How to authorize remote connections in MySQL in Linux
It is mainly a CSS style control and a META tag; C...
Example: We use the Python code loop_hello.py as ...
1.fullpage.js Download address https://github.com...
Carousel The main idea is: In the large container...
Table of contents 1. Use default parameters inste...
In the process of database operation, it is inevi...
This article example shares the specific code of ...
Implementing responsive layout with CSS Responsiv...
Table of contents 1. Build the Vue environment 2....
I've been playing with the remote development...
flex layout Definition: The element of Flex layou...
This article records the installation tutorial of...
background First, let me explain the background. ...
HTML is made up of tags and attributes, which are...
Yum (full name Yellow dog Updater, Modified) is a...