{"id":15352223,"url":"https://github.com/xd-deng/flask-example","last_synced_at":"2025-04-09T20:15:20.525Z","repository":{"id":37818744,"uuid":"95958047","full_name":"XD-DENG/flask-example","owner":"XD-DENG","description":"A minimal web app developed with Flask","archived":false,"fork":false,"pushed_at":"2024-03-05T23:10:43.000Z","size":462,"stargazers_count":109,"open_issues_count":5,"forks_count":117,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-09T20:15:16.126Z","etag":null,"topics":["flask","python"],"latest_commit_sha":null,"homepage":null,"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/XD-DENG.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":"2017-07-01T10:38:56.000Z","updated_at":"2025-03-09T14:02:10.000Z","dependencies_parsed_at":"2024-03-06T00:25:47.279Z","dependency_job_id":"ba7653ab-a579-410b-9eb4-567a34ff150d","html_url":"https://github.com/XD-DENG/flask-example","commit_stats":{"total_commits":24,"total_committers":8,"mean_commits":3.0,"dds":0.375,"last_synced_commit":"a7381d5257fbd8773379530e78346dfe87508779"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XD-DENG%2Fflask-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XD-DENG%2Fflask-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XD-DENG%2Fflask-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XD-DENG%2Fflask-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XD-DENG","download_url":"https://codeload.github.com/XD-DENG/flask-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103872,"owners_count":21048245,"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","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","python"],"created_at":"2024-10-01T12:09:01.859Z","updated_at":"2025-04-09T20:15:20.491Z","avatar_url":"https://github.com/XD-DENG.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flask-example\n\nA minimal web app developed with [Flask](http://flask.pocoo.org/) framework. \n\nThe main purpose is to introduce how to implement the essential elements in web application with Flask, including\n\n- URL Building\n\n- Authentication with Sessions\n\n- Template \u0026 Template Inheritance\n\n- Error Handling\n\n- Integrating with *Bootstrap*\n\n- Interaction with Database (SQLite)\n\n- Invoking static resources\n\nFor more basic knowledge of Flask, you can refer to [a tutorial on Tutorialspoint](https://www.tutorialspoint.com/flask/).\n\n\n## How to Run\n\n- Step 1: Make sure you have Python\n\n- Step 2: Install the requirements: `pip install -r requirements.txt`\n\n- Step 3: Go to this app's directory and run `python app.py`\n\n\n\n## Details about This Toy App\n\nThere are three tabs in this toy app\n\n- **Public**: this is a page which can be accessed by anyone, no matter if the user has logged in or not.\n\n- **Private**: Only logged-in user can access this page. Otherwise the user will get a 401 error page.\n\n- **Admin Page**: This part is only open to the user who logged in as \"Admin\". In this tab, the administrator can manage accounts (list, delete, or add).\n\n\nA few accounts were set for testing, like ***admin*** (password: admin), ***test*** (password: 123456), etc. You can also delete or add accounts after you log in as ***admin***.\n\n\n\n## References\n\n- http://flask.pocoo.org/\n\n- https://www.tutorialspoint.com/flask/\n\n\n\n## Credict\nImage private.jpg: https://commons.wikimedia.org/wiki/File:(315-365)_Locked_(6149414678).jpg\n\nImage public.jpg: https://commons.wikimedia.org/wiki/File:Drown%3F!_(131380682).jpg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxd-deng%2Fflask-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxd-deng%2Fflask-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxd-deng%2Fflask-example/lists"}