1 Star 0 Fork 180

jointsoft / admin3

forked from cjbi / admin3 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Admin3

项目说明

项目使用最新的技术栈(后端Java17、SpringBoot3.0,前端TypeScript、Vite3、Vue3、Element Plus),只提供了用户和权限管理的核心功能最佳实践方案,适合作为基础工程二次定制开发、接私活、源码学习等场景

体验地址:

http://metacode.wetech.tech:8082/admin3

在线部署:

https://gitpod.io/#https://github.com/cjbi/admin3

测试账号:

admin / 123456

拥有所有权限

employee / employee

拥有部分权限

guest / guest

拥有查看权限

主要特性

  • 未使用任何安全框架,优雅地实现了会话管理+权限控制功能,支持请求URL权限拦截,菜单、按钮级别权限控制
  • 会话通过数据库作为二级缓存,即使重启也不会丢失登录状态
  • 支持AOT编译Native镜像,相较于传统JVM形式节省了至少50%的内存
  • 前端资源支持独立部署+webjars嵌入到后端应用两种形式
  • 持久层使用SpringData JPA进行开发,能够支持多种数据库适配
  • 所有的接口都有端到端的测试用例覆盖,有代码变动都会全量跑一遍测试用例,保证功能绝对可用

项目预览

文档

权限管理

目录结构

API参考

软件需求

  • JDK 17
  • MySQL 8.0
  • Maven 3.6.0+

本地部署

常用命令

服务端命令

  • 编译打包
mvn clean package
  • 安装到本地仓库
mvn clean install

说明:如果服务端使用webjars管理前端资源,强烈建议将admin3-ui安装到本地仓库

  • 运行部署
cd admin3-server/target
nohup java -jar -Dspring.datasource.url=xxx -Dspring.datasource.username=xxx -Dspring.datasource.password=xxx admin3-server-0.0.1-SNAPSHOT.jar >/dev/null 2>&1 &
  • 打包JVM镜像
mvn spring-boot:build-image -Dmaven.test.skip=true -Ddocker.image-name=xxx -Ddocker.username=xxx -Ddocker.password=xxx
  • 打包native镜像
 mvn -Pnative spring-boot:build-image -Dmaven.test.skip=true -Ddocker.image-name=xxx -Ddocker.username=xxx -Ddocker.password=xxx

前端命令

  • 安装依赖
yarn install
  • 开发模式运行
yarn dev
  • 编译项目
yarn build

许可证

MIT

MIT License Copyright (c) 2023 Cheng Jinbao Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

一个轻巧的后台管理框架,项目后端基于Java17、SpringBoot3.0,前端基于TypeScript、Vite3、Vue3、Element Plus,只提供登录会话、用户管理、角色管理、权限资源管理、事件日志等基础功能的最佳实践方案,不做过多的封装,适合二次定制开发、接私活、源码学习等场景 https://github.com/cjbi/admin3 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/jointsoft/admin3.git
git@gitee.com:jointsoft/admin3.git
jointsoft
admin3
admin3
main

搜索帮助