{"id":22235512,"url":"https://github.com/dimplektech/blog-website-flask-application","last_synced_at":"2025-03-25T09:25:09.770Z","repository":{"id":264170596,"uuid":"892570895","full_name":"Dimplektech/Blog-Website-Flask-Application","owner":"Dimplektech","description":"This application is a Flask-based blog site.","archived":false,"fork":false,"pushed_at":"2024-11-22T11:39:23.000Z","size":1673,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T08:43:27.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/Dimplektech.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":"2024-11-22T11:14:12.000Z","updated_at":"2024-11-22T11:39:26.000Z","dependencies_parsed_at":"2024-11-22T12:42:26.023Z","dependency_job_id":null,"html_url":"https://github.com/Dimplektech/Blog-Website-Flask-Application","commit_stats":null,"previous_names":["dimplektech/blog-website-flask-application"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimplektech%2FBlog-Website-Flask-Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimplektech%2FBlog-Website-Flask-Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimplektech%2FBlog-Website-Flask-Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimplektech%2FBlog-Website-Flask-Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dimplektech","download_url":"https://codeload.github.com/Dimplektech/Blog-Website-Flask-Application/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245433407,"owners_count":20614473,"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-12-03T02:13:36.418Z","updated_at":"2025-03-25T09:25:09.747Z","avatar_url":"https://github.com/Dimplektech.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Blog Website Flask Application\n\nA simple Flask-based blogging website that displays posts fetched from an external API and allows users to contact the site owner via email.\n\n## Features\n\n1. **Home Page (`/`)**\n   - Displays all blog posts retrieved from an external API.\n\n2. **Post Page (`/post/\u003cint:index\u003e`)**\n   - Shows the content of a single blog post based on its ID.\n\n3. **About Page (`/about`)**\n   - A static page about the blog or website.\n\n4. **Contact Page (`/contact`)**\n   - Users can submit their contact information and message via a form.\n   - Sends the form data to the site owner's email using Gmail SMTP.\n   - Displays feedback after submission.\n\n5. **Email Integration**\n   - Emails are sent via Gmail SMTP.\n   - Uses `My_Email` and `PASSWORD` environment variables for secure credentials.\n\n## Technologies Used\n\n- **Flask**: Web framework.\n- **Requests**: Fetching blog posts from an external API.\n- **SMTP**: Sending emails.\n- **SSL**: Secure email connections.\n- **Dotenv**: Securely handling environment variables.\n\n## Installation and Setup\n\n1. Clone the repository:  \n ```bash\n   git clone https://github.com/Dimplektech/Blog-Website-Flask-Application.git\n\n2.  Install dependencies:\n```bash\n   pip install -r requirements.txt\n\n3. Create a .env file in the project directory with:\n```bash\n   My_Email=your-email@gmail.com\n   PASSWORD=your-app-password\n\n4.Run the application:\n```bash\npython app.py\n\n## Directory Structure\n    \n    blog-flask/\n    ├── templates/\n    │   ├── index.html      # Home page template\n    │   ├── about.html      # About page template\n    │   ├── contact.html    # Contact form page\n    │   ├── post.html       # Individual blog post page\n    ├── app.py              # Flask application\n    ├── requirements.txt    # Project dependencies\n    ├── .env                # Environment variables (not included in the repository)\n    └── README.md           # Project documentation\n\n## API for Blog Posts\n    The application fetches blog data from an external API. Replace the URL in the script with your custom API URL if necessary:\n ```bash\n    posts = requests.get(\"https://api.npoint.io/c790b4d5cab58020d391\").json()\n\n## Example .env File\n  make file\n```bash\n    My_Email=example@gmail.com\n    PASSWORD=yourapppassword\n      \n\n \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimplektech%2Fblog-website-flask-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimplektech%2Fblog-website-flask-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimplektech%2Fblog-website-flask-application/lists"}