{"id":18930654,"url":"https://github.com/tecladocode/web_blog","last_synced_at":"2025-04-15T16:31:46.063Z","repository":{"id":43822771,"uuid":"48795958","full_name":"tecladocode/web_blog","owner":"tecladocode","description":"Simple web-based blog to introduce Flask, HTML, CSS, Bootstrap, and Jinja2.","archived":false,"fork":false,"pushed_at":"2022-02-17T13:57:27.000Z","size":14,"stargazers_count":42,"open_issues_count":0,"forks_count":54,"subscribers_count":7,"default_branch":"master","last_synced_at":"2023-03-01T08:35:32.568Z","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/tecladocode.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}},"created_at":"2015-12-30T10:37:14.000Z","updated_at":"2022-12-06T19:37:43.000Z","dependencies_parsed_at":"2022-09-04T01:01:00.616Z","dependency_job_id":null,"html_url":"https://github.com/tecladocode/web_blog","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecladocode%2Fweb_blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecladocode%2Fweb_blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecladocode%2Fweb_blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecladocode%2Fweb_blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tecladocode","download_url":"https://codeload.github.com/tecladocode/web_blog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223679188,"owners_count":17184810,"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-08T11:38:26.770Z","updated_at":"2024-11-08T11:38:27.257Z","avatar_url":"https://github.com/tecladocode.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Web blog\n========\n\n[Original course code](https://github.com/schoolofcode-me/web_blog/releases/tag/v1.0.0) | [Code updated to Flask 2.0](https://github.com/schoolofcode-me/web_blog/releases/tag/v2.0.0)\n\nThis is a simple web-based blog that doesn't do much but introduces Flask, HTML, CSS, Bootstrap, Jinja2, and other concepts such as endpoints and APIs.\n\nThe blog requires MongoDB to be running without authentication enabled.\n\nOnce this is running, execute the app with `flask run` and navigate to the endpoint (default: `http://127.0.0.1:5000/`).\n\nThe available endpoints are:\n\n- `/`\n- `/login`\n- `/register`\n- `/blogs`\n- `/blogs/new`\n- `/posts/\u003cstring:blog_id\u003e`\n- `/posts/new/\u003cstring:blog_id\u003e`\n\n\n## How to use this code\n\n1) Create a new virtual environment: `python -m venv .venv`\n2) Activate the virtual environment:\n\nIn powershell:\n\n```powershell\n.\\.venv\\Scripts\\activate\n```\n\nIn bash\n\n```bash\nsource .venv/Scripts/activate\n```\n\nIn CMD\n\n```cmd\n.venv\\Scripts\\activate\n```\n\nIn Mac OS / Linux:\n\n```bash\nsource .venv/bin/activate\n```\n\n3) Verify that the file `.flaskenv` is in the top directory and that it contains the environment variable `FLASK_APP=src.app`.\n\n4) Run the app\n\n```\nflask run\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecladocode%2Fweb_blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftecladocode%2Fweb_blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecladocode%2Fweb_blog/lists"}