{"id":22845164,"url":"https://github.com/dimplektech/flask-blog-project","last_synced_at":"2026-05-01T09:32:15.499Z","repository":{"id":267324792,"uuid":"900893166","full_name":"Dimplektech/Flask-Blog-Project","owner":"Dimplektech","description":"The application uses SQLite for the database, Flask-WTF for form handling, and CKEditor for a rich text editor.","archived":false,"fork":false,"pushed_at":"2024-12-09T17:09:05.000Z","size":1696,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T09:47:48.003Z","etag":null,"topics":["ckeditor","sqlite","wtforms-flask"],"latest_commit_sha":null,"homepage":"","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-12-09T17:01:18.000Z","updated_at":"2024-12-09T17:10:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"dcfffb9a-bd05-43d1-89de-ed19de71cdec","html_url":"https://github.com/Dimplektech/Flask-Blog-Project","commit_stats":null,"previous_names":["dimplektech/flask-blog-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimplektech%2FFlask-Blog-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimplektech%2FFlask-Blog-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimplektech%2FFlask-Blog-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimplektech%2FFlask-Blog-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dimplektech","download_url":"https://codeload.github.com/Dimplektech/Flask-Blog-Project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246421008,"owners_count":20774426,"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":["ckeditor","sqlite","wtforms-flask"],"created_at":"2024-12-13T03:15:54.117Z","updated_at":"2026-05-01T09:32:15.447Z","avatar_url":"https://github.com/Dimplektech.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Blog Project\n\n## Overview\nThis is a simple blog application built with Flask. It allows users to:\n- Create, edit, and delete blog posts.\n- View all posts on the homepage.\n- View details of individual posts.\n\nThe application uses SQLite for the database, Flask-WTF for form handling, and CKEditor for a rich text editor.\n\n## Features\n1. **CRUD Operations**:\n   - Add new blog posts.\n   - Edit existing blog posts.\n   - Delete blog posts.\n2. **Rich Text Editing**:\n   - CKEditor is integrated for writing blog content.\n3. **Database Integration**:\n   - SQLite is used to store blog posts.\n4. **Bootstrap Integration**:\n   - Bootstrap is used for styling and layout.\n\n## Prerequisites\nEnsure you have the following installed:\n- Python 3.8+\n- Flask and its extensions (detailed in the requirements section below)\n\n## Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/Dimplektech/Flask-Blog-Project\n   cd flask-blog-project\n   ```\n\n2. Create and activate a virtual environment:\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows: venv\\Scripts\\activate\n   ```\n\n3. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Initialize the database:\n   ```bash\n   python app.py\n   ```\n   This will create the `posts.db` file with the required tables.\n\n## Running the Application\n1. Start the Flask server:\n   ```bash\n   python app.py\n   ```\n\n2. Open your web browser and go to:\n   ```\n   http://127.0.0.1:5003/\n   ```\n\n## File Structure\n```\nflask-blog-project/\n├── app.py                # Main application file\n├── templates/            # HTML templates\n│   ├── base.html         # Base template with common layout\n│   ├── index.html        # Homepage displaying all posts\n│   ├── post.html         # Single post details\n│   ├── make-post.html    # Form for creating/editing posts\n│   ├── about.html        # About page\n│   ├── contact.html      # Contact page\n├── static/               # Static files (CSS, JS, Images)\n├── posts.db              # SQLite database file\n├── requirements.txt      # List of dependencies\n└── README.md             # Project documentation\n```\n\n## Dependencies\nThe required Python packages are listed in `requirements.txt`. Here are the key dependencies:\n- Flask\n- Flask-Bootstrap\n- Flask-WTF\n- Flask-SQLAlchemy\n- Flask-CKEditor\n\nTo install all dependencies:\n```bash\npip install -r requirements.txt\n```\n\n## Key Components\n### Routes\n- `/`: Displays all blog posts.\n- `/show_post/\u003cpost_id\u003e`: Displays details of a specific post.\n- `/new_post`: Allows users to create a new post.\n- `/edit_post/\u003cpost_id\u003e`: Allows users to edit an existing post.\n- `/delete/\u003cpost_id\u003e`: Deletes a specific post.\n- `/about`: Displays the About page.\n- `/contact`: Displays the Contact page.\n\n### Database Model\n- `BlogPost`:\n  - `id`: Unique identifier.\n  - `title`: Title of the blog post.\n  - `subtitle`: Subtitle of the blog post.\n  - `date`: Date of publication.\n  - `body`: Content of the post (rich text).\n  - `author`: Name of the author.\n  - `img_url`: URL of the post's image.\n\n## Known Issues\n- Ensure the form validation is correctly implemented when using CKEditor.\n- SQLite is used for simplicity; switch to a more robust database like PostgreSQL for production.\n\n## Future Improvements\n- Add user authentication for managing posts.\n- Add pagination for the homepage.\n- Enhance styling and responsiveness.\n\n## License\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimplektech%2Fflask-blog-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimplektech%2Fflask-blog-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimplektech%2Fflask-blog-project/lists"}