-
克隆前后端源码
git clone https://gitee.com/renrenio/renren-fast.git git clone https://gitee.com/renrenio/renren-fast-vue.git
-
安装node.js(官网链接,下载版本为10.16.3,否则下面使用npm install安装依赖包时报错)
-
npm使用淘宝镜像源
npm config set registry http://registry.npm.taobao.org/
-
前端代码使用vs studio打开
# 安装前端依赖 npm install
-
后端代码使用idea打开
- 创建mysql数据库,并执行mysql.sql文件
- 修改resources/application-dev.yml文件中的数据库url、username、password
- 运行后端代码
- 在vs studio终端(即renren-fast目录下)执行
npm run dev
启动前端. - 通过
http://localhost:8001
访问前端界面