Coder Social home page Coder Social logo

hsxiaoma / antd-admin-springboot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from javahuang/antd-admin-springboot

0.0 2.0 0.0 1.67 MB

基于 antd-admin 和 springboot 的前后端分离整合方案 http://114.215.47.214:8080/

JavaScript 47.03% CSS 6.00% HTML 0.16% PLpgSQL 1.49% Java 45.33%

antd-admin-springboot's Introduction

Antd Admin Springboot

React Ant Design dva

PRs Welcome MIT js-standard-style

演示地址 http://114.215.47.214:8080/

admin/hello,请不要修改管理员账号的密码。

特性

原数据库使用的是 oracle,整个代码我重新整理一遍,但迁移稍微仓促,没有测试,页面有不少小的 bug,后期有时间我再一一修正

  • 前端基于最新版本的 antd-admin
  • 后端基于 springboot,同时整合了 shiro、mybatis,数据库使用的 mysql
  • 后端添加了自动分页插件
  • 基于 shiro 的 RBAC 权限控制,能动态配置菜单、 角色、权限等(用户对应角色(1对多),角色对应权限(1对多),菜单对应权限(1对1))
  • 统一异常处理及返回数据统一封装
  • 后端 RESTful api 设计
  • 开发、部署简单,能实现前后端同时开发且无需额外修改配置
  • ...

目录结构

前端目录结构参见 目录结构

快速开始

克隆项目文件:

git clone https://github.com/javahuang/antd-admin-springboot

进入目录安装依赖:

# 前端
# 开始前请确保没有安装roadhog、webpack到NPM全局目录
npm i 或者 yarn install

# 后台
# 根据 pom.xml 配置下载 maven 依赖包

开发:

# 前端
npm run build:dll #第一次npm run dev时需运行此命令,使开发时编译更快
npm run dev
打开 http://localhost:8000

# 后台
# 直接运行 me.hrps.aas.Application-main() 方法启动后台服务

构建:

# 前端
npm run build
将会打包至dist/{version}目录 #package.json里version字段
将 dist 目录下面所有文件拷贝到 src/main/resources/static 目录下面

# 后台
mvn clean install

部署:

# 上一步会在生成 war/ROOT.war 
# 方式1,直接运行 war 包
nohup java -jar ROOT.war &
# 方式2,丢到 tomcat 的 webapps 目录下面

antd-admin-springboot's People

Contributors

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