Using Vue3 (Part 1) Creating a Vue CLI Project

Using Vue3 (Part 1) Creating a Vue CLI Project

1. Official Documentation

Vue3 Documentation - vuejs
https://www.vue3js.cn/docs/zh/

Vue core function: data binding

Vue CLI Documentation
https://cli.vuejs.org/zh/guide/

Vue CLI = Vue.js + a bunch of components

2. Create a Vue CLI project

1. Install Vue CLI

Taobao mirror

SQL:

npm get registry -- Display the current mirror URL npm config set registry http://registry.npm.taobao.org -- Use Taobao's mirror URL

Install Vue CLI

CSS:

npm install -g @vue/[email protected]

2. Create a web application

SQL:

vue create web

3. Start the web application

Free command line startup. Drag to the right and double-click

3. Vue CLI project structure explanation

index.html , main.ts , app.vue
Reference method of two static resource files: public and assets

  • public does not participate in packaging
  • assets will be packaged

index.html introduces external static files using <%= BASE_URL %>
The .gitignore file in the sub-file will take effect, and the file rules configured in it are relative to the location of the current gitingore file
README.md is only valid in the root directory
package.json is similar to pom.xml
eslintrc.js
is a double-edged sword
Vue CLI needs to be compiled before it can be released

This is the end of this article about using Vue3 to create a Vue CLI project. For more relevant Vue3 to create a Vue CLI project content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to use Tencent slider verification code in Vue3+Vue-cli4 project
  • Vue3.0 CLI - 3.2 Routing Basic Tutorial
  • vue3.0 CLI - 2.5 - Understanding the three dimensions of components
  • vue3.0 CLI - 2.4 - Learn forms in the new component Forms.vue
  • Vue3 Vue CLI multi-environment configuration

<<:  Detailed tutorial on installing Docker and docker-compose suite on Windows

>>:  Solve the problem of MySQL using not in to include null values

Recommend

What is WML?

WML (Wireless Markup Language). It is a markup la...

Example of compiling LNMP in Docker container

Table of contents 1. Project Description 2. Nginx...

How to create Apache image using Dockerfile

Table of contents 1. Docker Image 2. Create an in...

How to view the database installation path in MySQL

We can view the installation path of mysql throug...

Solution to ERROR 1054 (42S22) when changing password in MySQL 5.7

I have newly installed MySQL 5.7. When I log in, ...

mysql-8.0.16 winx64 latest installation tutorial with pictures and text

I just started learning about databases recently....

Install and configure ssh in CentOS7

1. Install openssh-server yum install -y openssl ...

Analysis and solution of abnormal problem of loading jar in tomcat

Description of the phenomenon: The project uses s...

VMware Workstation installation Linux (Ubuntu) system

For those who don't know how to install the s...

How to build a redis cluster using docker

Table of contents 1. Create a redis docker base i...

Detailed explanation of the platform bus of Linux driver

Table of contents 1. Introduction to platform bus...

Steps to install MySQL 5.7.10 on Windows server 2008 r2

Install using the MSI installation package Downlo...

Solution to the problem of var in for loop

Preface var is a way to declare variables in ES5....