{"id":31641886,"url":"https://github.com/devmunro/intro-to-flask","last_synced_at":"2025-10-07T03:25:34.298Z","repository":{"id":316879680,"uuid":"1065195854","full_name":"devmunro/intro-to-flask","owner":"devmunro","description":"Flask demo showing setup, routes, dynamic routes, and HTML templates","archived":false,"fork":false,"pushed_at":"2025-09-27T10:25:04.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-27T10:26:45.263Z","etag":null,"topics":[],"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/devmunro.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-27T08:35:18.000Z","updated_at":"2025-09-27T10:25:07.000Z","dependencies_parsed_at":"2025-09-28T15:01:51.097Z","dependency_job_id":null,"html_url":"https://github.com/devmunro/intro-to-flask","commit_stats":null,"previous_names":["devmunro/intro-to-flask"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/devmunro/intro-to-flask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmunro%2Fintro-to-flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmunro%2Fintro-to-flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmunro%2Fintro-to-flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmunro%2Fintro-to-flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devmunro","download_url":"https://codeload.github.com/devmunro/intro-to-flask/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmunro%2Fintro-to-flask/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278714247,"owners_count":26033040,"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-10-07T02:00:06.786Z","response_time":59,"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":[],"created_at":"2025-10-07T03:25:32.698Z","updated_at":"2025-10-07T03:25:34.290Z","avatar_url":"https://github.com/devmunro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Intro to Flask \n\nWelcome to the **Intro to Flask** repository!  \n*This repo is based on the live session - Intro to Flask*\n\n  \u003cimg src=\"https://github.com/user-attachments/assets/e2219e85-1c49-4d60-8997-b521ee0e5ecb\" width=\"1006\" height=\"624\" alt=\"image\" /\u003e\n\n## Overview\n\nThe repository is split into **branches for each step**:\n\n| Step | Branch | Content                                                |\n|------|--------|--------------------------------------------------------|\n| Step 1 | `step-1-setup` | Minimal Flask app with a basic home route              |\n| Step 2 | `step-2-static-pages` | Static routes and HTML templates (`/` and `/about`)    |\n| Step 3 | `step-3-dynamic-routes` | Dynamic routes using URL variables (`/blog/\u003cpost_id\u003e`) |\n\n---\n\n## Getting Started\n\n1. Clone this repository:\n\n```bash\ngit clone https://github.com/devmunro/intro-to-flask.git\ncd intro-to-flask\npip install -r requirements.txt #pip3 for mac\n```\n\n2. Switch to the branch you want to explore\n\n```bash\ngit checkout step-1-setup\n# or step-2-static-pages\n# or step-3-dynamic-routes\n```\n\n3. Run the Flask app\n```bash\npython app.py\n#visit - http://localhost:5050/\n```\n\n\n## Notes for Students\n\n- debug=True lets Flask reload the server automatically when you save changes.\n- Default Flask port is 5000; here we use 5050.\n- render_template() looks in the templates/ folder by default.\n- Official Flask documentation: https://flask.palletsprojects.com/en/stable/quickstart/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmunro%2Fintro-to-flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevmunro%2Fintro-to-flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmunro%2Fintro-to-flask/lists"}