nodejs: An indispensable environment for current front-end engineering development, use nodejs's npm function to manage dependent packages
$ node-v#查看node版本
$ npm-v#查看npm版本
git: Currently the most popular distributed version management tool, code 提交, 检出, 日志 needs to be completed through git
$ git--v#查看git安装版本
npm Taobao mirror: npm’s server is located abroad, so npm is generally set to the domestic Taobao mirror.
$ npm config set registry https://registry.npm.taobao.org/ #设置淘宝镜像地址
$ npm config get registry #查看镜像地址
vscode editor: The current coding tool for front-end development, with a rich plug-in system ( vetur+ eslint), very suitable for developing front-end projects
Under src, in addition to main.js and App.vue, there are two files, permission.js and settings.js
permission.js: file that controls page login permissions
settings.js: Configuration of some project information
title(project name)
fixedHeader(fixed head)
sidebarLogo(Show left menu logo)
(4) Vuex structure
Vuex uses modules to manage shared state. The architecture is as follows
(5) SCSS
Definition: Both sass and scss are css preprocessing languages. scss is a new syntax introduced by sass3, and its suffixes are .sass and .scss respectively. The writing specifications of scss are basically the same as css. Sass has strict indentation specifications and does not have {} and ;
Plugin:easy sass
Nested syntax: usage is the same as less
&Parent selector: To set for a specific child element, you need to use & to eliminate spaces
Variables: scss uses $ symbols to identify variables, while less uses @ to identify variables.
Scope: The variable is defined within the scss rule block, then the variable can only be used within this rule block
src alias: The src alias defined in vue is @, which must be preceded by when used in scss~
(6) icons
4. Establish a remote Git repository and complete the initial submission