Giter VIP home page Giter VIP logo

xm-skeleton's Introduction

Xm Skeleton

在线demo 后台 http://47.91.157.230:2003 (账号:test, 密码:123456)

这是一个Spring Cloud的基础项目

如果你更需要单纯Spring-boot版本,请移步 xm-spring-boot.

目录结构

admin-server-template                   管理后台模板,用vue.js搭建
admin-server                            管理后台服务
api-server                              接口服务
article-server                          文章服务
common-lib                              公共资源
config-server                           配置服务,采用git仓库方式
eureka-server                           微服务注册发现中心
generator                               基于Mybatis-plus的生成工具
user-server                             用户服务,提供用户注册,授权等服务
gateway-server                          网关服务,在此服务做了全局token校验

运行

1,先导入根目录下的数据库

2, 依次启动,eureka, config等服务

3, 测试微服务,请用postman 导入要目录下的 xm-skeleton.postman_collection.json

功能

  1. 完整的后台管理系统,后端模板采用vue.js开发, 权限可以控制到按钮

  2. 用户注册,登录,token存储redis

  3. 网关全局token过滤校验

  4. 微服务间调用,可设置在feign的头部带上当前请求头的参数,目前带上了token,可以在微服务调用时传递用户令牌

  5. 代码自动生成,可自己指定生成模块,基于Mybatis-Plus实现

  6. 文章管理,富文本编辑器,图片上传

    ...

开发注意

开发后台模板,请先安装nodeJs到你的系统,然后进入admin-server-template目录中依次执行

$ npm install
$ npn run dev

如果开发完成了,请执行以下命令, 然后把dist目录里生成的资源文件拷贝到,admin-server的resources的static目录下。

$ npm run build

项目截屏

screen-shot

screen-shot

screen-shot

screen-shot

screen-shot

screen-shot

screen-shot

screen-shot

联系作者

如果有任何安装问题,请加我微信,如果你觉得对你有用,请帮忙star, 让更多人看到此项目,希望能帮到大家。

contact

xm-skeleton's People

Contributors

xiaomalover avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xm-skeleton's Issues

前端页面问题

Vue.config.js里面,target不是应该指向网关gateway吗?
module.exports = {
devServer: {
host: '127.0.0.1',
port: 7777,
proxy: {
'/skeleton': {
target: 'http://127.0.0.1:**20003**',
ws: true
},
'/foo': {
target: '<other_url>'
}
}
},
// 打包时不生成.map文件 避免看到源码
productionSourceMap: false
};

另外,readme里面
“如果开发完成了,请执行以下命令, 然后把dist目录里生成的资源文件拷贝到,admin-server的resources的static目录下。”

为啥要放到admin-server里面呢?

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.