人人开源前后端分离代码模版使用

  1. 码云人人开源链接

  2. 克隆前后端源码

    git clone https://gitee.com/renrenio/renren-fast.git
    git clone https://gitee.com/renrenio/renren-fast-vue.git
    
  3. 安装node.js(官网链接,下载版本为10.16.3,否则下面使用npm install安装依赖包时报错)

  4. npm使用淘宝镜像源

    npm config set registry http://registry.npm.taobao.org/
    
  5. 前端代码使用vs studio打开

    # 安装前端依赖
    npm install
    
  6. 后端代码使用idea打开

  • 创建mysql数据库,并执行mysql.sql文件
  • 修改resources/application-dev.yml文件中的数据库url、username、password
  • 运行后端代码
  1. 在vs studio终端(即renren-fast目录下)执行npm run dev启动前端.
  2. 通过http://localhost:8001访问前端界面

猜你喜欢

转载自blog.csdn.net/qq_26496077/article/details/113879083