近期接触了下前端项目,记录下学习过程。css
近几年前端发展的迅猛,各类框架层出不穷,vue react angular ,各类第三方组件html
原来会点js,jQuery 先后端一我的全搞定了,如今先后端分离,后端主要提供接口,前端主要负责交互前端
对于我的来讲会更专一本身的业务,固然对于企业来讲会多了一我的力成本。vue
通常都使用VSCode ,下载地址 https://code.visualstudio.com/ 很是简洁,能够灵活安装一些插件。node
下载地址:http://nodejs.cn/download/react
安装步骤很简单,只要一路“next”就能够了。git
安装完成后,打开命令行工具输入命令node -v,以下图,若是出现对应版本号,就说明安装成功了。npm
npm包管理器,是集成在node中的,因此,直接输入npm -v就会以下图所示,显示出npm的版本信息element-ui
听同事介绍说yarn比npm 快不少,也比较稳定,因此直接安装yarn json
进入终端用npm安装yarn
npm install -g yarn
切换淘宝镜像(能够切换本公司的镜像)
yarn config set registry https://registry.npm.taobao.org
下载项目,并启动
//下载项目 git clone git@xxxx //安装依赖 yarn // 启动项目 yarn serve
初始化 yarn init npm init 安装依赖 yarn install 或者 yarn npm install pnpm install 新增依赖 yarn add element-ui npm install element-ui --save pnpm i element-ui 删除依赖 yarn remove element-ui npm uninstall element-ui --save … 更新依赖 yarn upgrade npm update pnpm update
更多命令查看:https://yarn.bootcss.com/
这样环境基本就搭建好了。
后面有时间再说说语法。
没接触以前感受不会用,未知领域老是以为好厉害好高深的样子,环境搭建好,了解下基本语法基本就能上手项目了。
先迈出第一步。
相关连接: