{"id":28504920,"url":"https://github.com/archejk/blog_post","last_synced_at":"2026-07-09T08:31:03.049Z","repository":{"id":297582979,"uuid":"994177035","full_name":"archejk/blog_post","owner":"archejk","description":"DNC TH Challenge","archived":false,"fork":false,"pushed_at":"2025-10-24T20:16:54.000Z","size":149,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-26T10:46:18.459Z","etag":null,"topics":["abstraction","active-storage","devise","kaminari","mailer","postgresql","rspec-testing","ruby-on-rails","sendgrid-api","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/archejk.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,"zenodo":null}},"created_at":"2025-06-01T11:39:41.000Z","updated_at":"2025-06-15T10:44:04.000Z","dependencies_parsed_at":"2025-06-06T08:45:03.102Z","dependency_job_id":null,"html_url":"https://github.com/archejk/blog_post","commit_stats":null,"previous_names":["archejk/blog_post"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/archejk/blog_post","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archejk%2Fblog_post","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archejk%2Fblog_post/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archejk%2Fblog_post/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archejk%2Fblog_post/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archejk","download_url":"https://codeload.github.com/archejk/blog_post/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archejk%2Fblog_post/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35293216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-09T02:00:07.329Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["abstraction","active-storage","devise","kaminari","mailer","postgresql","rspec-testing","ruby-on-rails","sendgrid-api","tailwindcss"],"created_at":"2025-06-08T18:31:56.814Z","updated_at":"2026-07-09T08:31:03.017Z","avatar_url":"https://github.com/archejk.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blog Spot - Ruby on Rails Blog Application\n\nA simple blog application built with Ruby on Rails, featuring user authentication, email notifications, and TailwindCSS styling for a modern and responsive UI.\n\n---\n\n## Table of Contents\n\n- [Features](#features)\n- [Tech Stack](#tech-stack)\n- [Prerequisites](#prerequisites)\n- [Installation \u0026 Setup](#installation--setup)\n  - [1. Clone Repository](#1-clone-repository)\n  - [2. Install dependencies](#2-install-dependencies)\n  - [3. Database Set up](#3-database-set-up)\n  - [4. Environment Config](#4-environment-config)\n- [Run Tests](#run-tests)\n- [Running the Application](#running-the-application)\n- [Demo](#demo)\n- [Key Changes \u0026 Development Log](#key-changes--development-log)\n---\n\n## Features\n- **User Authentication** - Login/registration with Devise, Edit Profile Information with avatar upload\n- **Blog Post Management** - CRUD function in blog posts\n- **Feedback System** - Users can leave feedback on blog posts except their own\n- **Email Notifications** - Authors receive email notifications when feedback is submitted (via SendGrid Service API)\n- **Filtering \u0026 Pagination** – Filter blog posts by author and feedback presence with Kaminari gem pagination\n- **Responsive Design** - Built with Tailwind CSS for a modern, mobile-friendly interface\n- **Testing** - Fully tested with passing RSpec specs\n\n---\n\n## Tech Stack\n\n| Layer         | Technology                                                      |\n|---------------|------------------------------------------------------------------|\n| Backend       | [Ruby on Rails 7.x](https://rubyonrails.org)                    |\n| Database      | PostgreSQL                                                      |\n| Authentication| [Devise](https://github.com/heartcombo/devise)                  |\n| Emails        | [SendGrid API](https://sendgrid.com/)                           |\n| Pagination    | [Kaminari Gem](https://github.com/kaminari/kaminari)                                                    |\n| Frontend      | [Tailwind CSS](https://tailwindcss.com), [Stimulus JS](https://stimulus.hotwired.dev) |\n| Testing       | [RSpec](https://rspec.info), [FactoryBot](https://github.com/thoughtbot/factory_bot_rails) |\n\n---\n\n## Prerequisites\n- Ruby `3.0` or higher\n- Rails `7.0` or higher\n- PostgreSQL\n- Node.js `16` or higher\n- Yarn or npm\n- Git\n\n---\n\n## Installation \u0026 Setup\n\n### 1. Clone Repository\n```\ngit clone https://github.com/archejk/blog_post.git\n```\n\n- Navigate into the project directory\n```\ncd blog_spot\n```\n\n### 2. Install dependencies\n```rb\n# install ruby gems\nbundle install\n\n# install js javascript packages\nyarn install or npm install\n```\n\n### 3. Database Set up\n```rb\n# create and setup db\nrails db:create\nrails db:migrate\n\n# load data in the db (optional)\nrails db:seed\n```\n\n### 4. Environment Config\n- Create `.env` file in the root directory and add these env variables:\n```rb\n# database credentials\nDATABASE_USERNAME=your_username\nDATABASE_PASSWORD=your_password\n\n# Sendgrid email delivery service\nSENDGRID_API_KEY=your_sendgrid_api_key\n```\n  - refer to the documentation on how to generate API key: https://www.twilio.com/docs/sendgrid/for-developers/sending-email/getting-started-smtp\n  - your_sendgrid_api_key or use this key from my test account:\n  ![image](https://github.com/user-attachments/assets/f6b312da-f540-4dfa-b5af-5f057193c3cc)\n---\n\n## Run Tests\n```rb\n# all tests (models, controllers, etc.)\nbundle exec rspec\n\n# run specific test files\nbundle exec rspec spec/models\nbundle exec rspec spec/controllers\nbundle exec rspec spec/mailers\nbundle exec rspec spec/services\nbundle exec rspec spec/helpers\nbundle exec rspec spec/requests\n```\n\n---\n\n## Running the Application\n1. Start rails server\n```rb\nrails s\n```\n\n2. Start tailwind css watcher (in separate terminal)\n```rb\nrails tailwindcss:watch\n\n# or\n\nyarn build:css\n```\n\n3. Access the application\n- Visit: http://localhost:3000\n\n---\n\n ## Demo\n\nhttps://github.com/user-attachments/assets/c7cca9c4-a34b-4c4a-bf95-f0f8e3ba1bfb\n\n[BlogPost filtering and pagination.webm](https://github.com/user-attachments/assets/55516ba5-8aa6-4ccd-9708-9a139cc15ed8)\n\n---\n\n## Key Changes \u0026 Development Log\n- Initial Commit: Create and setup Blog Post with feedback mailer\n  - [View Commit ›](https://github.com/archejk/blog_post/commit/6532a80ec87f800e7ccb1e36a201eb8c6ecee042)\n- UI Improvement: Integrated Tailwind CSS for responsive design\n  - [View Commit ›](https://github.com/archejk/blog_post/commit/d70da34b5875f1f1771334f1343cd33d9ba50b85)\n- Email Notifications: Set up email delivery via SendGrid service\n  - [View PR #2 ›](https://github.com/archejk/blog_post/pull/2)\n- User Authentication: Integrated Devise for registration/login\n  - [View PR #4 ›](https://github.com/archejk/blog_post/pull/4)\n- User Profiles: Avatar upload with Active Storage and profile management\n  - [View Commit ›](https://github.com/archejk/blog_post/commit/69518f94384549de2cadfc6416b1681e90f6a709)\n- Bug Fix: Ensure delete button sends correct DELETE request with Turbo\n  - [View Commit ›](https://github.com/archejk/blog_post/commit/04a86044e020e3ea34d63766edb69a87d435a8c2)\n- Test: Set up Unit Test Framework\n  - [View Commit ›](https://github.com/archejk/blog_post/commit/ba1282f132cea6d39583593e503d16b98635623c)\n- Feature: BlogPost Filtering \u0026 Pagination\n  - [View PR #7 ›](https://github.com/archejk/blog_post/pull/7)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchejk%2Fblog_post","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchejk%2Fblog_post","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchejk%2Fblog_post/lists"}