前端等工具安装以及一些依赖

首先安装VSCode,我安装了一下插件:

这里写图片描述
这里写图片描述

下面是在安装好VSCode之后,如果发现找不到git的情况,需要重新配置一下git的path:

这里写图片描述

关于VSCode的一些个人设置

打开Settings:
//自动换行
“editor.wordWrap”: “on”
//在VSCode中设置git.path的路径
“git.path”: “F:/download/Git/Git-2.18.0-64-bit.exe”


安装本机环境:(只需安装一次)

node.js (安装好后运行,一般是v8.11.3,本地项目的功能也依赖于这个版本;最新版本v10.7.0是最新版本不稳定)
npm install
yarn install (yarn可以当做npm等的备用仓库)
淘宝镜像
`$ npm install -g cnpm --registry=https://registry.npm.taobao.org`

ap-fe-r2
|_ap-fe-optimze
|_ifbp-element

将 ifbp-element -> lib 复制到 ap-fe-optimze -> node_modules -> ifbp-element 中

将 trd 文件复制到 ap-pub-fe -> static -> ap

在index.js中:
配置代理服务,以下两条必须注释掉一条:
1. 用localhost:8080的话,就不需要trd文件,直接依赖element;
2. 用10.15.0.243:8089的话,需要trd文件,首页加载速度快,但是实际运行慢一点,新页面需要 经常刷新
var baseHost = 'http://localhost:8082';
var baseHost = 'http://10.15.0.243:8089';

trd文件主要是element依赖的文件


关于Git config

打开git,输入:

$ git config --global user.name "Yoyo"
$ git config --global user.email Yoyo@example.com

然后查看是否已经有了ssh密钥:

cd ~/.ssh
$ ssh-keygen -t rsa -C “小兵@example.com”

路径是:C:\Users\Administrator.ssh
这个路径下生成两个文件:id_rsa和id_rsa.pub

把id_rsa.pub放在编辑器中,copy里面的秘钥到gitlab就ok了
测试是否添加成:

ssh -T git@github.com

如果成功有如下提示:

Hi xianbai! You've successfully authenticated, but GitHub does not provide shell access.

参考文章:https://blog.csdn.net/u013626215/article/details/51508085

猜你喜欢

转载自blog.csdn.net/Learn_inCSDN/article/details/81003540