Code Monkey home page Code Monkey logo

ag-admin's Introduction

AG-Admin

AG-Admin是基于Spring Cloud实现的前后端分离的后台管理信息系统,具备用户管理、部门管理、菜单管理等多个模块,支持多业务系统并行开发,可以作为后台管理系统的脚手架。代码简洁,架构清晰,适合学习和直接项目中使用。核心技术采用Eureka、Fegin、Ribbon、Zuul、Hystrix、Security、OAth、Mybatis、Ace-cache等主要框架和中间件,前端采用Layui组件。

QQ群号:169824183

访问地址: http://120.77.133.155/admin/index

账号/密码:test/test

Markdown


模块说明

img

架构详解

监控

利用Spring Boot Admin 来监控各个独立Service的运行状态;利用Hystrix Dashboard来实时查看接口的运行状态和调用频率等。

负载均衡

将服务保留的rest进行代理和网关控制,除了平常经常使用的node.js、nginx外,Spring Cloud系列的zuul和rebbion,可以帮我们进行正常的网关管控和负载均衡。

服务注册与调用

基于Eureka来实现的服务注册与调用,在Spring Cloud中使用Feign, 我们可以做到使用HTTP请求远程服务时能与调用本地方法一样的编码体验,开发者完全感知不到这是远程方法,更感知不到这是个HTTP请求。

熔断机智

因为采取了服务的分布,为了避免服务之间的调用“雪蹦”,我采用了Hystrix的作为熔断器,避免了服务之间的“雪蹦”。


项目结构

├─ace-security
│  │  
│  ├─ace-admin----------------管理端服务层
│  │  
│  ├─ace-gate-----------------网关负载中心
│  │ 
│  ├─ace-ui-------------------前端UI层面
│  │    
│  ├─ace-center---------------服务注册中心
│  │   
│  ├─ace-monitor--------------监控中心
│  │     
│  └─ace-api------------------公共服务接口包
│  

功能简介

  1. 用户管理
  2. 角色管理
  3. 部门管理(待完善)
  4. 菜单管理
  5. 字典管理
  6. 业务日志(待完善)
  7. 登录日志(待完善)
  8. 监控管理
  9. 消息管理(待完善)
  10. 代码生成(待完善)

启动指南

  • 运行数据库脚本,创建库:ag_admin,脚本:ace-admin/db/init.sql
  • 依次运行main类:CenterBootstrap(ace-center)、GateBootstrap(ace-gate)、AdminBootstrap(ace-admin)、UIBootstrap(ace-ui)、MonitorBootstrap(ace-monitor)
  • 访问地址: http://localhost:8765/admin/index 账号/密码:admin/admin
  • 启动一个redis,用于ace-gate的session管理

版本日志

2017年6月6日 初步架构搭建

  • 完成spring cloud相关核心组件整合和搭建
  • 完成Hello World服务的调用和负载
  • 完成网关的初步代理
  • 完成监控中心的搭建

2017年6月10日 用户管理增删改查

Markdown

  • 完成后端的UI的选型
  • 完成首页改进
  • 完成用户模块的增删该查
  • 完成前后端分离的模块联通
  • 完成监控模块

2017年6月13日 完成登录统一拦截

img

  • spring security进行统一登录拦截

2017年6月17日 完成菜单管理模块

img

  • 引入boostrap table
  • 抽象基础Controller类
  • 完成菜单的增删改查和树状
  • 多系统菜单切换

2017年6月20日 完成角色和部门模块

img

  • 完成动态用户组设计
  • 完成动态角色、部门组功能
  • 完成角色与用户的关联
  • 完成角色与菜单的关联

2017年6月24日 完善监控模块

img img img

  • druid监控集成
  • spring boot监控集成
  • hystrix监控集成

2017年6月25日 完成资源权限管控

img img

  • 集成spring session
  • 完成服务无状态权限拦截
  • 完成前端和后端权限拦截
  • 页面按钮权限显示和隐藏(待完成)

2017年6月28日 完成初级网关

  • 用户合法性拦截
  • 用户资源权限拦截
  • 访问日志流水(待完成)
  • oauth2.0集成(待完成)

欢迎交流

img

ag-admin's People

Contributors

wxiaoqi avatar

Watchers

 avatar  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.