You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A complete blogging platform with authentication, nested comments, advanced search, image uploads, built-in analytics and an admin moderation panel — a React (Vite) client and an Express + MongoDB API in one monorepo.
📁 Repository Structure
This is a Monorepo containing both the frontend client and the backend server:
Secure user registration and login using JWT (JSON Web Tokens).
Password hashing using bcryptjs.
Profile editing (update name, email, and upload profile avatar).
Role-based access control (user and admin).
📝 Post & Content Management
Full CRUD operations on posts.
Support for draft, published, and archived states.
Like and unlike posts.
Automated reading time calculation based on word count.
Excerpt generation from content.
💬 Nested Comments System
Comment on posts with support for nested replies.
Like and unlike comments.
Admin moderation (approved, pending, or rejected statuses).
🔍 Advanced Search Engine
Quick Title Search: Dynamic suggestion search for autocompletion.
Advanced Search: Search by query in Title, Content, or Tags using MongoDB regex. Filter by author, tags, date range, minimum views, and sort by date or popularity.
🖼️ File Upload System
Profile avatar upload.
Single cover image upload for posts.
Multi-image upload (up to 5 files).
Handled with Multer and processed with Sharp: avatars cropped to 300×300, post images resized to 1200×800.
📊 Analytics & Tracking System
Session-based page view and post view tracking.
Device type detection (Desktop, Mobile, Tablet).
Custom event logging.
Search keyword analytic reports for administrator insights.
For rendering reports in the Admin Panel, MongoDB's aggregation pipeline transforms raw events into daily metrics by matching events, parsing dates, grouping, and sorting: