Skip to content

关于 RuoYi AI

你正在阅读的是 RuoYi AI的文档!

  • 如发现文档有误,欢迎提交 issue 帮助我们改进。

项目环境

序号软件名称版本/备注下载地址
1IntelliJ IDEA社区版/旗舰版官网下载
2VS Code最新稳定版官网下载
3NavicatMySQL 版中文下载
4GitWindows 客户端中文下载站
5JDK17 (OpenJDK)清华镜像
6MySQL5.7 (Windows Installer)官网下载
7Node.js20.18.0 (LTS)中文下载
8Redis5.0.7 (Windows 移植版)GitHub Releases
9Apache Maven3.9.9中文镜像站

安装后端

  1. 下载项目
git clone https://gitee.com/ageerle/ruoyi-ai
  1. idea 导入项目 01

  2. 配置maven 文件 - 设置 - 左上角搜索框输入maven - 选择maven安装目录 02

xml配置

xml
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
  <localRepository>D:/dev/apache-maven-3.9.9/repository</localRepository>
  <mirrors>
 <mirror>
   <id>aliyunmaven</id>
   <mirrorOf>*</mirrorOf>
   <name>阿里云公共仓库</name>
   <url>https://maven.aliyun.com/repository/public</url>
 </mirror>
  </mirrors>
  <profiles>
 <profile>
  <id>jdk-17</id>
  <activation>
   <activeByDefault>true</activeByDefault>
   <jdk>17</jdk>
  </activation>
  <properties>
   <maven.compiler.source>17</maven.compiler.source>
   <maven.compiler.target>17</maven.compiler.target>
   <maven.compiler.compilerVersion>17</maven.compiler.compilerVersion>
  </properties>
     </profile>
  </profiles>
</settings>
  1. 初始化数据库 0304
  2. 启动redis
  1. 启动项目 05

安装管理端

  1. 下载项目
git clone https://gitee.com/ageerle/ruoyi-admin
  1. 安装依赖
javascript
pnpm install
  1. 运行项目
javascript
pnpm run dev:antd
  1. 打包
javascript
 pnpm run build:antd
  1. 修改配置项
  • 后台接口:/apps/web-antd/vite.config.mts 07
  • 其他配置:/apps/web-antd/.env.development

安装用户端

  1. 下载项目
git clone https://gitee.com/ageerle/ruoyi-web
  1. 安装依赖
javascript
npm install
  1. 运行项目
javascript
npm run dev
  1. 打包
javascript
npm run build

nginx 部署

部署到 nginx后,可能会出现以下错误:

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.

解决方式一:

http {
    #如果有此项配置需要注释掉
    #include       mime.types;

    types {
      application/javascript js mjs;
    }
}

vscode 插件推荐

插件名功能描述
Vue-OfficialVue 官方插件
Prettier代码格式化
ESLint代码检查
Code Spell Checker英文拼写检查
EditorConfig统一代码风格
Iconify IntelliSense图标提示
stylelint样式检查
Tailwind CSS IntelliSensetailwind 类名提示
json2tsjson 转 ts interface
DotENVenv 高亮
Color Highlight可高亮颜色值 显示对应颜色
One Dark Pro主题, 原版不支持组件高亮

贡献

  • RuoYi AI 还在持续更新中,本项目欢迎您的参与,共同维护,逐步完善.
  • 如果你有兴趣加入我们,可以通过以下方式开始,我们会根据你的活跃度邀请你加入。

加入我们

  • 长期提交 PR
  • 提供有价值的建议。
  • 参与讨论,帮助解决 issue
  • 共同维护文档。