若依框架RuoYi-Cloud微服务版导入IDEA安装运行启动访问

19 篇文章 0 订阅
2 篇文章 0 订阅

官方地址

若依

https://www.ruoyi.vip/

后端

微服务版本源码地址

源码地址:

https://gitee.com/y_project/RuoYi-Cloud

git克隆:

https://gitee.com/y_project/RuoYi-Cloud.git

附:相关安装部署,参考另几篇博文:

准备工作:

JDK >= 1.8 (推荐1.8版本)
Mysql >= 5.5.0 (推荐5.7版本)
Redis >= 3.0
Maven >= 3.0
Node >= 10
nacos >= 1.1.0
sentinel >= 1.6.0

Nacos(注册中心+配置中心)—安装详解

https://blog.csdn.net/u010312671/article/details/105930774

从0开始部署Linux服务器java运行环境,xshell、xftp下载、jdk安装、mysql安装、nginx安装

https://blog.csdn.net/github_39698303/article/details/107658285

Linux服务器从零开始安装redis完整版

https://blog.csdn.net/github_39698303/article/details/108450874

IDEA导入项目

File > Open… > 选择项目 > ok
在这里插入图片描述
在这里插入图片描述

IDEA修改配置

File > Project Structure…
在这里插入图片描述
Project > Project SDK > 改为自己安装的jdk版本 > apply > ok
在这里插入图片描述
File >Settings… > Maven > 确认本地maven仓库地址配置 > apply > ok
在这里插入图片描述

附:配置好本地maven仓库地址,下次导入项目就不用修改了
在这里插入图片描述
等待加载maven依赖包……

导入数据库sql

在这里插入图片描述

在这里插入图片描述

修改Nacos配置

用notepad++ 打开nacos > conf > appliction.properties
在这里插入图片描述
Nacos增加mysql数据源支持

 db.url.0=jdbc:mysql://127.0.0.1:3306/ry-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
 db.user=root
 db.password=****

在这里插入图片描述

启动Nacos
在这里插入图片描述
在这里插入图片描述
访问:http://localhost:8848/nacos/index.html 所有的配置都在这里修改
在这里插入图片描述
修改认证模块和系统模块的mysql连接配置-修改密码
在这里插入图片描述

IDEA 启动项目

RuoYiGatewayApplication (网关模块 必须)
RuoYiAuthApplication (认证模块 必须)
RuoYiSystemApplication (系统模块 必须)
RuoYiMonitorApplication (监控中心 可选)
RuoYiGenApplication (代码生成 可选)
RuoYiJobApplication (定时任务 可选)
显示多服务窗口
在这里插入图片描述

前端

note.js下载安装

https://nodejs.org/en/
在这里插入图片描述

运行访问

安装好查看版本 note.js自带npm
在这里插入图片描述

# 进入项目目录
note -v
npm -v
cd D:\dev\myprojects\RuoYi-Cloud\ruoyi-ui
d:

# 安装依赖
npm install

# 强烈建议不要用直接使用 cnpm 安装,会有各种诡异的 bug,可以通过重新指定 registry 来解决 npm 安装速度慢的问题。
npm install --registry=https://registry.npm.taobao.org

# 本地开发 启动项目
npm run de

在这里插入图片描述
访问能正常登录进入首页即可:localhost:81
在这里插入图片描述
在这里插入图片描述

  • 7
    点赞
  • 42
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值