初始化技术博客项目

功能特性:
- 前端文章展示 (Markdown渲染、代码高亮)
- 后台管理系统 (文章、分类、标签、作者管理)
- 图片上传 (点击、拖拽、粘贴)
- 网站设置 (Logo、底部宣传图片上传)
- 访问统计 (IP记录、趋势图表)
- 参考来源、附件支持
- 单端口部署 (16012)

技术栈:
- Flask 3.0 + SQLAlchemy
- SQLite数据库
- marked.js + highlight.js (Markdown渲染)
- Chart.js (统计图表)
This commit is contained in:
2026-06-04 23:12:34 +08:00
commit e689fed71e
53 changed files with 6506 additions and 0 deletions

11
run.py Normal file
View File

@@ -0,0 +1,11 @@
"""启动脚本"""
import os
from app import create_app
# 创建应用
app = create_app(os.environ.get('FLASK_ENV', 'development'))
if __name__ == '__main__':
# 从环境变量获取端口默认16012
port = int(os.environ.get('PORT', 16012))
app.run(host='0.0.0.0', port=port)