{"id":21090872,"url":"https://github.com/ovenx/flask-blog","last_synced_at":"2026-04-25T23:33:34.622Z","repository":{"id":53469125,"uuid":"239093531","full_name":"ovenx/flask-blog","owner":"ovenx","description":"simple flask blog","archived":false,"fork":false,"pushed_at":"2022-07-29T23:01:58.000Z","size":178,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T10:12:41.520Z","etag":null,"topics":["blog","flask","python","simple"],"latest_commit_sha":null,"homepage":"https://flask-blog.ovenx.cn/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ovenx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-08T08:28:32.000Z","updated_at":"2020-02-21T11:22:21.000Z","dependencies_parsed_at":"2022-08-18T04:01:33.934Z","dependency_job_id":null,"html_url":"https://github.com/ovenx/flask-blog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ovenx/flask-blog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovenx%2Fflask-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovenx%2Fflask-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovenx%2Fflask-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovenx%2Fflask-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ovenx","download_url":"https://codeload.github.com/ovenx/flask-blog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovenx%2Fflask-blog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32280974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","flask","python","simple"],"created_at":"2024-11-19T21:41:08.419Z","updated_at":"2026-04-25T23:33:34.609Z","avatar_url":"https://github.com/ovenx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flask-blog\n基于 flask 的极简 blog\n\n## 安装\n\nclone 代码到本地\n```shell\ngit clone https://github.com/ovenx/flask-blog.git\n```\n\n安装 virtualenv\n```shell\ncd flask-blog\npython -m venv venv #python3\n. venv/bin/activate # venv\\scripts\\activate(windows)\n```\n\n安装依赖\n```shell\npip install -r requirements.txt\n```\n\n创建数据库，导入数据表\n```mysql\ncreate database flask-blog\nsource flask-blog/schema.sql\n```\n\u003e 或者可以通过 flask initdb 方式来导入数据表（需要设置FLASK_APP）\n\n创建配置文件，修改数据库配置\n\n```bash\ncp config.py.example config.py\n```\n\n然后运行\n```shell\npython run.py\n```\n\u003e前台地址：http://127.0.0.1:5000\n\n\u003e后台地址：http://127.0.0.1:5000/admin（默认为 admin/admin）\n\n样式修改\n```shell\nnpm install\ngulp # gulp watch\n```\n\n## 部署\n\nflask 自带的 server 不适用于生产环境，需要使用其它 server 代替，[请参考文档说明](http://flask.pocoo.org/docs/0.12/deploying/#deployment)。\n推荐使用 **gunicorn + nginx + supervisor** 方式，[详情参考](https://blog.xiongwentao.me/2020/02/09/flask-blog-deploy/) 。\n\n\n## 功能\n\n* 分类\n* 标签\n* 归档\n* 分页\n* code highlight\n* markdown\n* toc\n\n\n## 依赖\n\n* [python3](https://www.python.org/)\n* [flask](https://github.com/pallets/flask)\n* [mistune](https://github.com/lepture/mistune)\n* [pygments](http://pygments.org/)\n* [pymysql](https://github.com/PyMySQL/PyMySQL)\n* [bootstrap v4](https://github.com/twbs/bootstrap)\n* [simplemde-markdown-editor](https://github.com/NextStepWebs/simplemde-markdown-editor)\n* [sass](https://github.com/sass/sass)\n\n## TODO\n\n- [x]  friendlink\n- [ ]  优化界面的自适应\n- [ ]  添加 about 页面\n- [ ]  后台导出 markdown 文件\n- [x]  文章页添加查看 markdown 原文\n- [ ]  评论功能，留言本\n- [ ]  I18N\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovenx%2Fflask-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovenx%2Fflask-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovenx%2Fflask-blog/lists"}