{"id":17196101,"url":"https://github.com/gsw945/flask-bigger4edu","last_synced_at":"2025-09-07T05:33:05.468Z","repository":{"id":169239695,"uuid":"157487398","full_name":"gsw945/flask-bigger4edu","owner":"gsw945","description":"Flask-Bigger for education - Flask大型应用骨架-教育专用","archived":false,"fork":false,"pushed_at":"2019-01-19T08:56:57.000Z","size":3123,"stargazers_count":18,"open_issues_count":0,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-13T20:44:49.159Z","etag":null,"topics":["flask"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gsw945.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-11-14T03:51:48.000Z","updated_at":"2021-12-17T18:29:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b5b200d-bbc9-48d3-8d68-51d5d6ef551e","html_url":"https://github.com/gsw945/flask-bigger4edu","commit_stats":null,"previous_names":["gsw945/flask-bigger4edu"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gsw945/flask-bigger4edu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsw945%2Fflask-bigger4edu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsw945%2Fflask-bigger4edu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsw945%2Fflask-bigger4edu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsw945%2Fflask-bigger4edu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gsw945","download_url":"https://codeload.github.com/gsw945/flask-bigger4edu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsw945%2Fflask-bigger4edu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273997195,"owners_count":25204498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["flask"],"created_at":"2024-10-15T01:52:23.918Z","updated_at":"2025-09-07T05:33:05.457Z","avatar_url":"https://github.com/gsw945.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask-Bigger for education\n*Flask大型应用骨架-教育专用*\n\n# 开始使用\n1. `git clone https://github.com/gsw945/flask-bigger4edu.git`\n2. `cd flask-bigger4edu`\n3. `pip install -r requirements.txt`\n4. `python run.py`\n\n## 后端说明\n\u003e 使用 **Python 3** (理论上 **Python 2**可以正常运行，但是未测试)\n\n### 后端-使用的第三方库\n* **Flask**\n    - [GitHub](https://github.com/pallets/flask)\n    - [PyPi](https://pypi.python.org/pypi/Flask)\n    - [Doc](http://flask.pocoo.org/docs/)\n    - [Doc-v0.10](http://docs.jinkan.org/docs/flask/)(中文)\n    - [Doc-v0.11](http://python.usyiyi.cn/translate/flask_011_ch/index.html)(中文)\n    - [Doc-v1.0.2](https://dormousehole.readthedocs.io/en/latest/)(中文)\n* **Jinja2**\n    - [GitHub](http://github.com/mitsuhiko/jinja2)\n    - [PyPi](https://pypi.python.org/pypi/Jinja2)\n    - [Doc](http://jinja.pocoo.org/docs/)\n    - [Doc](http://python.usyiyi.cn/translate/jinja2_29/index.html)(中文)\n    - [Doc](http://docs.jinkan.org/docs/jinja2/)(中文)\n\n### 安装依赖包\n```shell\npip install -r requirements.txt\n```\n\n### 数据库迁移\n1. 初始化迁移配置\n    ```shell\n    python manage.py db init\n    ```\n2. 生成迁移文件\n    ```shell\n    python manage.py db migrate\n    ```\n3. 执行迁移操作(更改到数据库)\n    ```shell\n    python manage.py db upgrade\n    ```\n4. 查看帮助\n    ```shell\n    python manage.py db --help\n    ```\n\n### 安装依赖包\n```shell\npip install -r requirements.txt\n```\n\n### 开发运行\n```shell\npython ./run.py\n# 或者\npython manage.py runserver --host 0.0.0.0 --port 5555\n\n# 查看运行帮助\npython manage.py runserver --help\n```\n\n---\n\n## 前端说明\n\n### 前端-使用的第三方库\n* **Bootstrap**\n    - [GitHub](https://github.com/twbs/bootstrap)\n    - [Doc-com](http://getbootstrap.com)\n    - [Doc](https://v3.bootcss.com)(中文)\n\n## (关键)目录、文件说明\n```\n├── backend                            # 后端文件目录\n│   ├── __init__.py                    # 包标识\n│   ├── app_env.py                     # 应用环境变量配置获取\n│   ├── app_map.py                     # 子应用汇总入口\n│   ├── apps                           # 子应用目录(结构可参考admin)\n│   │   ├── ...                        # 其他子应用\n│   │   ├── home                       # home子应用(站点首页)\n│   │   │   ├── main.py                # home应用-主文件\n│   │   │   └── views.py               # home应用-视图文件\n│   │   └── __init__.py                # 包标识\n│   ├── core                           # 站点核心(独立于具体业务)文件目录\n│   │   ├── __init__.py                # 包标识\n│   │   ├── cdn.py                     # CDN\n│   │   ├── database.py                # 数据库\n│   │   ├── exception.py               # 异常\n│   │   ├── hook.py                    # 钩子\n│   │   ├── middlewares.py             # 中间件\n│   │   ├── route.py                   # 路由\n│   │   └── template.py                # 模板\n│   ├── startup.py                     # 站点启动入口文件\n│   └── utils                          # 工具库目录\n│       ├── __init__.py                # 包标识\n│       ├── classes.py                 # 辅助类\n│       ├── database.py                # 数据库操作辅助函数封装\n│       └── functions.py               # 辅助函数\n├── config                             # 外部配置\n│   ├── cdn.json                       # CDN资源列表\n│   ├── database.json                  # 数据库配置\n│   ├── example-database-mysql.json    # 数据库配置文件示例(MySQL)\n│   └── example-database-sqlite.json   # 数据库配置文件示例(SQLite)\n├── frontend                           # 前端目录\n│   ├── static                         # 静态文件目录\n│   │   ├── ...                        # 自定义静态文件(css,js,image)\n│   │   ├── apps                       # 应用前端\n│   │   │   ├── ...                    # 其他子应用前端-静态文件\n│   │   │   └── home                   # home子应用-前端-静态文件\n│   │   └── _libs                      # 第三方库\n│   ├── templates                      # 模板目录\n│   │   ├── ...                        # 各子应用模板\n│   │   ├── home                       # home子应用-前端-模板文件\n│   │   └── base-layout.html           # 基础父模板\n│   ├── favicon.ico                    # 站点图标(ICO)\n│   ├── favicon.png                    # 站点图标(PNG)\n│   ├── flask-bigger.png               # LOGO(PNG)\n│   └── robots.txt                     # 搜索引擎配置文件\n├── .gitignore                         # Git忽略文件\n├── deploy.py                          # 部署-启动文件\n├── LICENSE                            # 许可证(MIT)\n├── manage.py                          # 命令行操作脚本(数据库操作)\n├── README.md                          # 项目说明\n├── requirements.txt                   # 依赖包清单文件\n├── run.py                             # 开发运行-启动文件\n└── site.version                       # 站点版本文件\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsw945%2Fflask-bigger4edu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgsw945%2Fflask-bigger4edu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsw945%2Fflask-bigger4edu/lists"}