GithubHelp home page GithubHelp logo

tycoding / tumo-vue Goto Github PK

View Code? Open in Web Editor NEW
390.0 16.0 150.0 9.69 MB

Tumo Blog For Vue.js. 前后端分离

Home Page: http://tumo.tycoding.cn

Java 36.39% JavaScript 16.49% HTML 0.20% Vue 39.45% PLpgSQL 5.13% SCSS 2.34%

tumo-vue's Introduction

Tumo Blog

Tumo Blog 是一个简洁美观的博客系统,基于SpringBoot2.X + Vue.js。

License GitHub stars SpringBoot

Tumo 是一款基于SpringBoot2.x构建的博客系统。Tumo 系统具有简洁、规范的代码设计,借助Vue.js、Thymeleaf构建传统单体架构项目;与此同时,Tumo-Vue 前后端分离架构的系统也应运而生。两款项目采用相同的后端逻辑实现,区别在于前者采用了单体架构,而后者使用Vue2.x实现前后端分离架构。两者的结合更好的帮助开发者熟悉SpringBoot框架快速开发并学习项目如何从单体架构过度到前后端分离架构。

单体版本

本前后端分离版本和单体版本采用了相同的后端逻辑实现,是你从单体架构过度到前后端分离架构的最佳实践。

项目源码:https://github.com/TyCoding/tumo 希望大家star、fork支持。

技术选型

Name Version Env Version
SpringBoot 2.3.1.RELEASE JDK 1.8
Mybatis 2.1.3 MySQL 5.7
Spring-Shiro 1.5.2 IDEA 2020.1

文档

如果有需要提供该项目技术支持的小伙伴加QQ:2783903379 进该项目的交流群(不免费,门槛:10元)。

手摸手教你SpringBoot项目实战。

项目开发、使用文档请移步:http://docs.tumo.tycoding.cn

文档将在我的公众号 程序员涂陌 第一时间发布,请持续关注!

程序员涂陌
qrcode_for_gh

请喝果汁

Alipay WechatPay
alipay_258px wechat_258px

预览

截屏2020-07-05 上午11.20.41

截屏2020-07-05 上午11.21.15

截屏2020-07-05 上午11.21.57

截屏2020-07-05 上午11.23.06

截屏2020-07-05 上午11.23.27

截屏2020-07-05 上午11.23.43

截屏2020-07-05 上午11.24.45

截屏2020-07-05 上午11.25.00

截屏2020-07-05 上午11.25.27

截屏2020-07-05 上午11.25.44

截屏2020-07-05 上午11.26.00

截屏2020-07-05 上午11.27.55

截屏2020-07-05 上午11.26.21

截屏2020-07-05 上午11.28.42

截屏2020-07-05 上午11.26.54

截屏2020-07-05 上午11.29.00

交流

QQGroup:671017003

WeChatGroup: 关注公众号查看

联系我

tumo-vue's People

Contributors

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

tumo-vue's Issues

nginx 部署时 前端报错

nginx部署好后
本地访问报
Uncaught TypeError: i is undefined
b240 headroom.min.js:11
b240 headroom.min.js:8
b240 app.2da3d9c0.js:6
h (index):1
a18c app.2da3d9c0.js:1
h (index):1
4360 app.2da3d9c0.js:1
h (index):1
56d7 app.2da3d9c0.js:1
h (index):1
0 app.2da3d9c0.js:1
h (index):1
n (index):1
c (index):1
app.2da3d9c0.js:1
其他服务器访问报
headroom.min.js:11 Uncaught TypeError: Cannot set property 'Headroom' of undefined
at headroom.min.js:11
at Object. (headroom.min.js:8)
at Object.b240 (app.2da3d9c0.js:6)
at h (admin:1)
at Object.a18c (app.2da3d9c0.js:1)
at h (admin:1)
at Object.4360 (app.2da3d9c0.js:1)
at h (admin:1)
at Module.56d7 (app.2da3d9c0.js:1)

前端展示报错,找不到文章

我按照楼主的步骤,在本地启动 后端及 前端

  1. 本机部署及启动后端工程,浏览器访问 http://localhost:8080/tumo 成功;

  2. 本机部署前端,http://localhost:9528/ 可以打开,但是访问 文章列表失败;
    经过排查,发现问题是跨域访问导致,在vue.config.js 的跨域配置少了部分内容:

    proxy: {
    '/api': {
    target: 'http://localhost:8080/',
    ws: true,

     //少了下面部分,导致加了/api 后,无法找到对应的后台接口
     changeOrigin: true,
     pathRewrite: {
      // ^代表字符串开头,实际发送请求时,会把请求开头的/demo删除
      // 因为/demo并不是请求的一部分,只是个代理的标识
         "^/api": ""
     }
    

    }
    }

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.