Giter VIP home page Giter VIP logo

web-image-generator-somg's Introduction

网络文件存储网站

每次写博客都要想办法传网络图片,自己写一个简单的能获取链接

并且这些生成的图片会上传到云上,本地数据库也会对文件链接做一个持久化存储

网站添加了多用户功能,用户可以注册自己的账号登录自己的私有空间

用户上传文件最好不要大于300MB,因为目前没有做分片上传

网站对用户上传的文件进行了分类,具体有 文件列表图片列表视频列表音频列表,其中文件列表包含了其他三个分类的所有数据以及没有分类的数据

网站系统首页中将会展示整站的文件的统计数据,如果用户登陆了,还会在系统首页展示当前用户的文件统计数据

上传到网站上的图片视频都有缩略图展示,方便用户寻找视频,配合查询可以更方便的查找资源

web-image-generator-somg

后端采用SpringBoot + SpringSecurity + Jwt做的前后端分离认证

采用redis做权限存储,采用mysql做数据持久化存储

项目整合MybatisPlus,文件删除使用逻辑删除,用于记录用户使用过网站

后端api接口的请求权限通过SpringSecurity提供的权限认证来做,保证用户有每种权限或者角色才能请求到响应的api接口

后端api接口权限存放在Role和Permission数据表以及关联表中

web-image-generator-vue

本地图片上传生成网络图片的前端,需要和后端一起使用,前后端分离的,后端也有一个简单的页面,可以选择不使用这个前端页面

使用vue编写的可视化前台页面

前端的菜单访问权限也是从后端获取过来的

在线工具使用

网络文件上传地址 账号guest 密码guest

匿名上传地址

登录

login

主页

index

上传

upload

数据库备份脚本

src/main/db/back_database.py

两种方式,配置了字典就必须走字典(除了存储路径和忽略/备份数据库三个),没配置字典必须走硬编码

pip install pymysql
pip install apscheduler


# 数据库主机地址
MYSQL_HOST = '47.108.229.150'
# MySQL数据库用户名
MYSQL_USERNAME = 'somg'
# 数据库端口
MYSQL_PORT = 3306
# 数据库密码
MYQSL_PASSWORD = 'somg'

web-image-generator-somg's People

Contributors

lqs-1 avatar

Stargazers

 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.