{"id":29123627,"url":"https://github.com/cheesecake87/flask-example-sub-domain","last_synced_at":"2026-04-24T11:33:08.213Z","repository":{"id":151284998,"uuid":"594858932","full_name":"CheeseCake87/Flask-Example-Sub-Domain","owner":"CheeseCake87","description":"Contains a working example of using Sub Domains in Flask.","archived":false,"fork":false,"pushed_at":"2024-11-28T15:19:18.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-09T12:32:13.978Z","etag":null,"topics":["example","flask","guide","python","tutorial"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CheeseCake87.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":"2023-01-29T21:04:55.000Z","updated_at":"2025-06-20T07:07:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"23abb85e-32a1-4674-b7e3-3cc36b60ab41","html_url":"https://github.com/CheeseCake87/Flask-Example-Sub-Domain","commit_stats":null,"previous_names":["cheesecake87/flask-example-sub-domain"],"tags_count":0,"template":false,"template_full_name":"CheeseCake87/Flask-Example-Application-Factory","purl":"pkg:github/CheeseCake87/Flask-Example-Sub-Domain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheeseCake87%2FFlask-Example-Sub-Domain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheeseCake87%2FFlask-Example-Sub-Domain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheeseCake87%2FFlask-Example-Sub-Domain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheeseCake87%2FFlask-Example-Sub-Domain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CheeseCake87","download_url":"https://codeload.github.com/CheeseCake87/Flask-Example-Sub-Domain/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheeseCake87%2FFlask-Example-Sub-Domain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32221413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["example","flask","guide","python","tutorial"],"created_at":"2025-06-29T19:09:06.393Z","updated_at":"2026-04-24T11:33:08.180Z","avatar_url":"https://github.com/CheeseCake87.png","language":"Python","readme":"# EXA-Sub-Domain\n(EXA, Example)\n\nContains a working example of using Sub Domains.\n\n### Setup\n\n(This assumes you have Python installed)\n\n1. Download or Clone this repository.\n2. Open terminal (Linux) / powershell (Windows) and cd to the directory of the project.\n\n```text\n# Linux\ncd /path/to/EXA-Sub-Domain\n\n# Windows\ncd C:\\path\\to\\EXA-Sub-Domain\n```\n\n---\n\n### Linux\n\n**Create a virtual environment and activate it.**\n\n```bash\npython3 -m venv venv\n```\n\n```bash\nsource venv/bin/activate\n```\n\n**Install the requirements.**\n\n```bash\npip install -r requirements.txt\n```\n\n**run**\n\n```bash\nflask run\n```\nor\n```bash\npython3 run.py\n```\n\n---\n\n### Windows\n\n\n**Create a virtual environment and activate it.**\n\n```bash\npython -m venv venv\n```\n\n```bash\n.\\venv\\Scripts\\activate\n```\n\n**Install the requirements.**\n\n```bash\npip install -r requirements.txt\n```\n\n**run**\n\n```bash\nflask run\n```\nor\n```bash\npython run.py\n```\n\n---\n\n### Post Setup\nAdd the following to your `hosts` file:\n\n```bash\n127.0.0.1       site.local\n127.0.0.1       subdomain.site.local\n127.0.0.1       blueprint.site.local\n```\n\nVisit `http://site.local:5000`,  `http://subdomain.site.local:5000` and \n`http://blueprint.site.local:5000` to see the results.\n\n**Linux most common `hosts` file location**\n\n`/etc/hosts`\n\n(open with sudo if needed, edit, then save)\n\n**Windows `hosts` file location**\n\n`c:\\Windows\\System32\\drivers\\etc\\hosts`\n\n(copy to desktop, edit, then paste back to folder)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheesecake87%2Fflask-example-sub-domain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheesecake87%2Fflask-example-sub-domain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheesecake87%2Fflask-example-sub-domain/lists"}