{"id":19874141,"url":"https://github.com/pythoninthegrass/static_flask","last_synced_at":"2025-03-01T01:23:01.570Z","repository":{"id":85073813,"uuid":"297166961","full_name":"pythoninthegrass/static_flask","owner":"pythoninthegrass","description":"Medium tutorial for news aggregator in Flask","archived":false,"fork":false,"pushed_at":"2020-09-20T22:33:28.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T16:50:22.186Z","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/pythoninthegrass.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":"2020-09-20T21:29:36.000Z","updated_at":"2020-09-20T22:33:30.000Z","dependencies_parsed_at":"2023-03-03T01:00:46.042Z","dependency_job_id":null,"html_url":"https://github.com/pythoninthegrass/static_flask","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fstatic_flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fstatic_flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fstatic_flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fstatic_flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythoninthegrass","download_url":"https://codeload.github.com/pythoninthegrass/static_flask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241301775,"owners_count":19940703,"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":[],"created_at":"2024-11-12T16:21:57.218Z","updated_at":"2025-03-01T01:23:01.552Z","avatar_url":"https://github.com/pythoninthegrass.png","language":"Python","readme":"# static_flask\n[Medium tutorial](https://medium.com/swlh/baking-static-sites-with-python-and-jinja-330fe29bbe08) for news aggregator in Flask created by [@mattvh](https://github.com/mattvh).\n\n## Setup\n* Install [pipenv](https://realpython.com/pipenv-guide/)\n* Clone repo\n* Install dependencies\n```bash\n# clone\ngit clone https://github.com/pythoninthegrass/static_flask.git\ncd static_flask/\n\n# install pipenv dependencies\npipenv install\n```\n\n## Generate HTML only\n* Move `style.css` out of public and template static directories\n* Run `generator.py`\n```bash\npipenv shell\npython generator.py\nopen public/index.html\n```\n\n## Generate HTML + CSS\n* Leave `style.css` in-place\n* Run `generator.py`\n```bash\npipenv shell\npython generator.py\nopen public/index.html\n```\n\n## TODO\n* Refactor with [News API](https://newsapi.org/docs/client-libraries/python)\n* Setup Flask environment for localhost\n* CI/CD\n* Create API to update or hard-code articles\n* Database to store previous days' hits\n* Redesign CSS layout\n* Deploy to Digital Ocean\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Fstatic_flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythoninthegrass%2Fstatic_flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Fstatic_flask/lists"}