1.后端項(xiàng)目
在碼云上搜索“人人開源”項(xiàng)目,找到renren-fast和renren-fast-vue兩個(gè)項(xiàng)目
image.png

image.png

image.png

image.png

image.png

image.png

image.png
修改renren-fast的配置文件,把數(shù)據(jù)庫地址和密碼改為我們自己數(shù)據(jù)庫的地址和密碼。

image.png

image.png
2.前端項(xiàng)目
在進(jìn)行前端項(xiàng)目開發(fā)前,需要先裝備前端開發(fā)環(huán)境,安裝nodejs,具體的安裝教程可自行百度。
image.png
使用VScode打開我們的前端項(xiàng)目renren-fast,然后在終端輸入npm install 下載依賴
npm install
如果gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable報(bào)錯(cuò),可參考點(diǎn)擊安裝node-sass
npm install node-sass --save-dev

image.png
下載完依賴后,運(yùn)行項(xiàng)目
npm run dev

image.png
然后在瀏覽器中輸入:http://localhost:9528/ 即可訪問我們的項(xiàng)目(一定要把后端項(xiàng)目先運(yùn)行起來)。

image.png
至此,前后端項(xiàng)目搭建完畢。