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
Table of contents 1.1Tinyint Type Description 1.2...
1. Background As the project's business conti...
This article shares the specific code of native j...
The Docker daemon uses HTTP_PROXY , HTTPS_PROXY ,...
Table of contents 1. Boolean 2. Expression 3. Mul...
To install Jenkins on CentOS 8, you need to use t...
1. Download the latest nginx docker image $ docke...
Table of contents 1. Page Layout 2. Image upload ...
Preface: Use the element framework in vue3.0, bec...
Creation of a two-dimensional array in Js: First ...
Preface In WeChat applet, you can use globalData ...
When the carriage return character ( Ctrl+M ) mak...
PSD to div css web page cutting example Step 1: F...
Table of contents 1 redis configuration file 2 Do...
Table of contents Preface What is metadata Refere...