{"id":26958740,"url":"https://github.com/lbaf23/flask_demo","last_synced_at":"2026-05-08T06:53:15.338Z","repository":{"id":132580781,"uuid":"609140135","full_name":"lbaf23/flask_demo","owner":"lbaf23","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-05T05:54:55.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T03:40:00.771Z","etag":null,"topics":["flask","mysql","restful-api"],"latest_commit_sha":null,"homepage":"","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/lbaf23.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-03T13:11:44.000Z","updated_at":"2023-03-04T13:27:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"90240e49-a90f-4f34-a9ab-994f4e9e4330","html_url":"https://github.com/lbaf23/flask_demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lbaf23/flask_demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbaf23%2Fflask_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbaf23%2Fflask_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbaf23%2Fflask_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbaf23%2Fflask_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lbaf23","download_url":"https://codeload.github.com/lbaf23/flask_demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbaf23%2Fflask_demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32770544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"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":["flask","mysql","restful-api"],"created_at":"2025-04-03T04:29:41.511Z","updated_at":"2026-05-08T06:53:15.313Z","avatar_url":"https://github.com/lbaf23.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Demo\n\n- [Flask](https://flask.net.cn/) Restful API\n  - with crud examples\n- MySQL [Flask-SQLAlchemy — Flask-SQLAlchemy Documentation (3.0.x) (palletsprojects.com)](https://flask-sqlalchemy.palletsprojects.com/en/3.0.x/)\n\n## dev\n- install\n```bash\npip install -r requirements.txt\n```\n\n- set config\n```bash\ncp config.py config_dev.py\n```\n\u003e set mysql user and password in config_dev.py\n\u003e \n\u003e create database `demo`\n\n- run\n```bash\npython app.py\n```\n\n- generate requirements.txt\n```bash\npip install pipreqs\npipreqs ./ --force --encoding='utf-8'\n```\n\n## prod\n\n- gunicorn\n- gevent\n\n### cmd\n\n- Linux\n\n```bash\ngunicorn app:app -c gunicorn.conf.py\n```\n\n### docker\n\n```bash\ndocker build -t flask_demo .\n```\n\n- Linux\n\n```bash\ndocker run --name=flask_demo --network=host -d --rm flask_demo\n```\n\n- others\n\n\u003e docker-desktop doesn't support host network\n\n```bash\ndocker run --name=flask_demo -p 5000:5000 -d --rm flask_demo\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbaf23%2Fflask_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flbaf23%2Fflask_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbaf23%2Fflask_demo/lists"}