Code Monkey home page Code Monkey logo

forever8 / admin3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cjbi/admin3

0.0 0.0 0.0 123.76 MB

一个灵活高效不臃肿的后台管理框架,项目后端基于Java17、SpringBoot3.0,前端基于TypeScript、Vite3、Vue3、Element Plus,只提供登录会话、用户管理、角色管理、权限资源管理、事件日志等基础功能的最佳实践方案,不做过多的封装,适合二次定制开发、接私活、源码学习等场景

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

License: MIT License

Shell 0.20% Java 52.72% TypeScript 5.80% CSS 1.06% HTML 0.28% Vue 39.94%

admin3's Introduction

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进行开发,能够支持多种数据库适配
  • 所有的接口都有端到端的测试用例覆盖,有代码变动都会全量跑一遍测试用例,保证功能绝对可用

项目预览

软件需求

  • 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

admin3's People

Contributors

cjbi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.