6.1 git clone 人人項目
6.2修改配置文件 啟動項目
在碼云上搜索人人開源,我們使用renren-fast,renren-fast-vue項目。
git clone https://gitee.com/renrenio/renren-fast.git
git clone https://gitee.com/renrenio/renren-fast-vue.git
下載到了桌面,我們把renren-fast移動到我們的項目文件夾(刪掉.git文件),而renren-fast-vue是用VSCode打開的(后面再弄)
git clone https://gitee.com/renrenio/renren-fast.git
git clone https://gitee.com/renrenio/renren-fast-vue.git
下載到了桌面,我們把renren-fast移動到我們的項目文件夾(刪掉.git文件),而renren-fast-vue是用VSCode打開的(后面再弄)
6.2修改配置文件 啟動項目
然后修改項目里renren-fast中的application.yml,
修改application-dev.yml中的數庫庫的
url: jdbc:mysql://192.168.1.103:3306/gulimall_admin?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
username: root
password: root
然后執(zhí)行java下的RenrenApplication
瀏覽器輸入http://localhost:8080/renren-fast/
得到{“msg”:“invalid token”,“code”:401}就代表無誤
6.3用VSCode打開renren-fast-vue
6.3.1 安裝node:
版本為v10.16.3
設置node鏡像倉庫
npm config set registry http://registry.npm.taobao.org/ # 設置node倉庫。提高下載速度
6.3.2 在終端中輸入命令:
npm install
,安裝項目所需依賴。 6.3.3 安裝完成后,輸入命令:
npm run dev
,運行項目。 瀏覽器輸入localhost:8001 就可以看到內容了,登錄賬號admin 密碼admin