{"id":39478824,"url":"https://github.com/mrchi/flask-tutorial","last_synced_at":"2026-01-18T05:01:16.659Z","repository":{"id":47529660,"uuid":"183049835","full_name":"mrchi/flask-tutorial","owner":"mrchi","description":"A Flask application written by following Tutorial in Flask Documents, make some difference.","archived":false,"fork":false,"pushed_at":"2023-05-01T22:51:15.000Z","size":86,"stargazers_count":7,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T18:37:10.326Z","etag":null,"topics":["flask","flask-tutorial","flaskr"],"latest_commit_sha":null,"homepage":"","language":"Python","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/mrchi.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}},"created_at":"2019-04-23T15:59:34.000Z","updated_at":"2024-02-27T05:22:00.000Z","dependencies_parsed_at":"2023-01-18T10:45:44.426Z","dependency_job_id":null,"html_url":"https://github.com/mrchi/flask-tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrchi/flask-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrchi%2Fflask-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrchi%2Fflask-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrchi%2Fflask-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrchi%2Fflask-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrchi","download_url":"https://codeload.github.com/mrchi/flask-tutorial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrchi%2Fflask-tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28530621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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","flask-tutorial","flaskr"],"created_at":"2026-01-18T05:00:45.280Z","updated_at":"2026-01-18T05:01:16.499Z","avatar_url":"https://github.com/mrchi.png","language":"Python","readme":"# flask-tutorial\n\nA Flask application named Flaskr, written by following [Tutorial in Flask Documents](http://flask.pocoo.org/docs/1.0/tutorial/).\n\nDifferent from [official example](https://github.com/pallets/flask/tree/1.0.2/examples/tutorial), I use Flask extensions. such as:\n\n- Flask-SQLAlchemy\n- Flask-Login\n- Flask-Migrate\n\n## commands\n\n### database\n\n```\ndocker run -d \\\n    --name flaskr-db \\\n    -e POSTGRES_USER=flask \\\n    -e POSTGRES_PASSWORD=flask123 \\\n    -e POSTGRES_DB=flaskr \\\n    -p 127.0.0.1:5432:5432 \\\n    postgres\n```\n\n```\npsql -U flask -d flaskr -p 5432 -h localhost\n```\n\n### testing\n\n```\ncoverage run -m pytest\ncoverage report\ncoverage html\n```\n\n### build and install\n\n```\npip install wheel\npython setup.py bdist_wheel\n```\n\n```\npip install flaskr-1.0.0-py3-none-any.whl\nexport FLASK_APP=flaskr\nflask init-db\nflask fake\nflask run\n```\n\n## TODO\n\n- ~~[ ] Use JSON-Schema validating params;~~ (It's convenient for API, not for templates.)\n- [x] Add CLI command for generating fake data;\n- [x] Add testing for CLI command;\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrchi%2Fflask-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrchi%2Fflask-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrchi%2Fflask-tutorial/lists"}