Article Directory
ruoyi official deployment document
http://doc.ruoyi.vip/ruoyi-cloud/document/hjbs.html#%E5%87%86%E5%A4%87%E5%B7%A5%E4%BD%9C
But I often use idea and no Picture, so I wrote this blog post with reference to the official document.
backend start
database
MySQL, the blogger installed MySQL5.7.30, please refer to
MySQL-5.7.30
installation for details
Import Data
Create database ry-cloud and import data script ry_2023xxxx.sql (required), quartz.sql (optional)
Create database ry-config and import data script ry_config_2022xxxx.sql (required)
JDK
maven
git pull code
Use idea to pull code
git address from gitee: https://gitee.com/y_project/RuoYi-Cloud.git
configure nacos
After pulling the code, you need to configure nacos
spring.datasource.platform=mysql
db.num=1
db.url.0=jdbc:mysql://localhost:3306/ry-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
db.user=root
db.password= 自己的密码
Start nacos for Windows
Click the startup.cmd file in nacos/bin.
nacos installation tutorial
Start Redis
Start the RuoYi-Cloud backend basic module
-
RuoYiGatewayApplication (required for gateway modules)
-
RuoYiAuthApplication (required for authentication modules)
-
There is a problem with RuoYiSystemApplication (required for system modules)
:
-
nacos no configuration
-
Redis initialization failed.
原因:
Nacos' own SQL script may have been imported, and the ry-config table was not used.
success
front-end startup
nodejs installation
nodejs installation tutorial
nodejs does not recommend installing the latest version. ruoyi installs the Node14 version.
Dependency installation
# 进入目录
cd ruoyi-ui
# 安装依赖
npm install
start up
# 本地开发 启动项目
npm run dev
Open the browser, localhost:80, (the front end will be opened automatically after running), the default account/password admin/admin123
If the login page can be displayed correctly, and the menu and page display are normal, it means that the environment is successfully built.
The system is shown in the figure.