Mgekimghost
mgek图床项目,一个flask简易图床
Install / Use
/learn @Landers1037/MgekimghostREADME
mgekimghost
mgek图床项目,一个flask简易图床
介绍
基于flask1.0.3,sqlite数据库开发,需要可以在配置文件中切换为mongoDB 一款小型本地化图床,所有服务基于本地没有连接公共图床服务,支持用户登录,多文件上传,图片预览,批量编辑,批量删除,批量下载,批量图片直链生成
上线部署的问题
🕓未完成
- ~~使用ajax异步上传,同时添加上传进度条(已完成)~~
- ~~图片上传后的直链获取框~~
- ~~多文件上传后的直链获取~~
- ~~多张图片的删除功能(基本完成)~~
- 图片的信息记录
- 移动设备的图片自适应问题(待优化)
🚀最近更新
-
更新时间2019.8.28
-
优化了批量编辑的按钮显示逻辑,取消按钮点击效果更完善
-
优化了图片的显示逻辑,按照最新上传时间排序
-
新增Ajax异步上传页面添加上传进度条,访问ajax_upload进入新版上传页面
-
新增关于界面
-
更新时间2019.8.30
-
增加登录页面,完善登录系统
-
增加批量图片直链获取页面
-
优化上传页显示,使用局部刷新,上传后图片数据即刻更新
🔵使用
git clone https://github.com/Landers1037/mgekimghost.git
#在项目目录下运行flask shell
$ flask shell
$ from app import db
$ db.create_all() #初始化数据库
pip install -r requirements.txt
python app.py
#### if linux with nginx&gunicorn ###
sh start.sh
查看本地端口5000
start.sh内容
#! /bin/bash
nohup gunicorn -w 2 -b 127.0.0.1:5000 --reload app:app &
echo "check port 5000"
需要在nginx上配置监听5000端口
🔷示例
主页面

上传

批量编辑

图片详情页

删除

上传历史

新版上传页面(ajax)

关于页面

直链批量提取

登录页面

♻自定义
数据库
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(os.getcwd(), 'img.db')
默认为sqlite,可以注释掉这一句,添加mongoDB数据库
™版权
演示图片出自<strong style="color:royalblue">wlop</strong><br> 本应用作者<strong style="color:royalblue">Landers</strong><br> 我的主页<a href="http://lrenj.top">Landers1037</a>
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
