Coder Social home page Coder Social logo

w350491385 / ag-admin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from softwareking/ag-admin

0.0 1.0 0.0 2.06 MB

Spring Cloud API Admin是基于spring cloud统一管理授权、认证后台管理系统,具备用户管理、资源权限管理、网关API管理等多个模块,支持多业务系统并行开发,可以作为后台管理系统的脚手架。代码简洁,架构清晰,适合学习和直接项目中使用。核心技术采用Eureka、Fegin、Ribbon、Zuul、Hystrix、Security、Mybatis等主要框架和中间件,前端采用Layui组件。

License: Apache License 2.0

PLpgSQL 4.61% Java 17.09% CSS 12.28% HTML 10.57% JavaScript 55.44%

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

账号/密码:admin/admin

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. 代码生成(待完善)

启动指南

部署须知

  • mysql数据库一个,redis数据库一个
  • jdk1.8
  • IDE插件一个,lombok插件,具体百度即可

运行步骤

  • 运行数据库脚本:依次运行数据库:ace-admin/db/init.sql,ace-api-gate/db/init.sql
  • 修改配置数据库配置:ace-admin/src/main/resources/application.yml、ace-api-gat/src/main/resources/application.yml、ace-gate/src/main/resources/application.yml
  • 依次运行main类:CenterBootstrap(ace-center)、GateBootstrap(ace-gate)、AdminBootstrap(ace-admin)、UIBootstrap(ace-ui)、ApiGateBootstrap(ace-api-gate)、MonitorBootstrap(ace-monitor)
  • 访问地址: http://localhost:8765/admin/index 账号/密码:admin/admin

2017年7月7日 服务鉴权v1.0

img img

  • api鉴权中心落地
  • 客户端和服务端授权管理
  • 客户端和服务端鉴权开发
  • 详情见wiki:服务鉴权文档

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

img img

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

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

img img img

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

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

img

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

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

img

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

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

img

  • spring security进行统一登录拦截

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

Markdown

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

版本日志

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

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

欢迎交流

img

ag-admin's People

Contributors

wxiaoqi avatar

Watchers

 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.