Coder Social home page Coder Social logo

bihell / dice Goto Github PK

View Code? Open in Web Editor NEW
442.0 17.0 126.0 16.44 MB

一个前端后端分离的个人内容管理(CMS)系统。包含权限、博客、导航等模块。采用Nuxt、Vue2/3和SpringBoot3框架开发。

License: MIT License

JavaScript 2.72% HTML 0.17% Vue 30.66% CSS 0.94% Java 28.94% TypeScript 34.08% Less 2.23% SCSS 0.25% Shell 0.01%
dice mysql java vue docker docker-compose openresty lua redis mybatis-plus

dice's Introduction

codebeat badge GitHub license

  • 基于java17 spring-boot3 spring-security node vue2 vue3 nuxt2 开发的个人管理系统: 目前有博客、导航、权限管理三大模块.其中博客除了管理前端外还有SEO前端
  • 功能精简但齐全,界面简洁却美观,满足个人日常使用要求
  • 项目会持续更新,如果有不完善的地方,欢迎指出

演示站点:

博客前端 管理前端

演示账号:

普通用户:demo 123456

管理员:dice 123456

数据库每日零点重制

微信群:加微信:digital-review,请注明来意

一、部分界面

二、项目结构

Dice
├── dice-admin        --  后台管理前端,基于vue-vben-admin项目开发。
├── dice-front        --  博客SEO前端,基于vue-next项目开发
└── dice-server       --  后端服务,Spring Boot全家桶
    ├── dice-blog          --  博客模块
    ├── dice-bootstrap     --  启动模块
    ├── dice-framework     --  框架核心模块
    ├── dice-nav           --  导航模块
    └── dice-system        --  系统模块

三、参与开发

目前后端刚切SpringBoot3SpringSecurity,一些细节还未调整,欢迎各位参与进来。

请确保系统中已经安装dockerdocker-componsenodejsnpmJava17RedisMySQL等必须的依赖。

3.1 安装依赖(MacOS)

Java

Oracle官方直接下载安装

注:spring-boot 3开始支持Java17以上版本

MySQL

brew install mysql
mysql.server start

如果你的MySQL版本较新,可能会碰到无法连接的错误。可以重新设置一下账号权限,方式如下:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'
flush privileges;

Redis

brew install redis
brew services start redis

Pnpm

版本>=8.1.0

brew install pnpm

Node

版本>=16.15.1

brew install node

Git

版本>= 2.x

brew install git

3.2 启动运行

克隆项目到本地

git clone https://github.com/bihell/Dice.git

3.2.1 dice-server Java后台

项目使用lombok插件,如果要在ide中调试要有lombok插件 数据库初始语句:dice-server/misc/init.sql

修改相应配置

进入服务端文件夹cd dice-server,修改spring-boot配置文件vi dice-server/dice-bootstrap/src/main/resources/config/application-dev.yml

spring:
    datasource:
      driverClassName: com.mysql.cj.jdbc.Driver
      url: jdbc:mysql://localhost:3306/dice?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
      username: root
      password: root

将数据库的用户名和密码修改成对应你数据库的用户名密码

项目启动

多种启动方式:

  1. 直接运行main方法

直接在IDE中运行dice-bootstrap模块的DiceApplication启动类的main方法就可以看到项目启动了。

  1. 打包启动
mvn clean package -Dmaven.test.skip=true -Pdev
java -jar dice-bootstrap/target/dice.jar

注意:Maven版本要>=3.2.5

3.2.2 dice-front 博客前端

进入前端文件夹cd dice-front,安装依赖并启动服务:

npm install
npm run dev

3.2.3 dice-admin 管理前端

进入后端文件夹cd dice-admin,安装依赖和启动服务:

npm install -g pnpm
pnpm install
pnpm dev

3.2.4 访问

http://localhost:3000/ 为博客前端首页

http://localhost:3100/admin/ 为管理后台首页

四、特别感谢

感谢 JetBrains 提供的免费开源 License:

https://jb.gg/OpenSourceSupport

dice's People

Contributors

bihell avatar tangllty 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  avatar

dice's Issues

角色管理编辑功能有点问题

角色管理功能里,编辑权限的时候,菜单名没有显示

权限管理,新增菜单的上级菜单,也没有显示名称

应该list插件的问题?

sql能不能发一个上来

Question(提问)

Steps to reproduce(问题复现步骤)

Screenshot or Gif(截图或动态图)

Link to minimal reproduction(最小可在线还原demo)

Other relevant information(格外信息)

  • Your OS:
  • Node.js version:
  • vue-element-admin version:

any file upload vuln

1、Any file upload vulnerability in the following code can cause RCE
image
2、Follow up the code、Files are directly uploaded to the server without filtering
image

docker方式部署后在媒体库上传图片提示 not login

docker方式部署后在媒体库上传图片提示 not login
在编辑文章处上传图片保存后图片无法获取、显示

Bug report(问题描述)

Steps to reproduce(问题复现步骤)

Screenshot or Gif(截图或动态图)

Link to minimal reproduction(最小可在线还原demo)

Other relevant information(格外信息)

  • Your OS:
  • Node.js version:
  • vue-element-admin version:

前端install报错

Bug report(问题描述)

Steps to reproduce(问题复现步骤)

npm ERR! Cannot read properties of null (reading 'pickAlgorithm')

npm ERR! A complete log of this run can be found in:

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.