A modern, feature-rich comment display system built with Next.js, featuring e-commerce platform design style with comprehensive functionality and multi-scenario applications.
- 🎨 Modern UI Design - Clean and intuitive interface with shadcn/ui components
- 🌓 Dark/Light Mode - Seamless theme switching with next-themes
- 📱 Responsive Design - Perfect adaptation for mobile and desktop devices
- ⭐ Rating System - 5-star rating display and interaction
- 🖼️ Image Support - Multi-image upload with lightbox preview
- 💬 Hierarchical Replies - Nested comment system with threading
- 🏷️ Smart Badges - Featured comments and verified purchase indicators
- 👍 Interactive Actions - Like, helpful, reply, and share functionality
- 🔍 Search & Filter - Real-time search and intelligent filtering
- 📊 Sort Options - Multiple sorting methods (helpful, recent, rating)
- 🚩 Report System - Content moderation and reporting features
- Framework: Next.js 15 with App Router
- Language: TypeScript for type safety
- Styling: Tailwind CSS 4 for utility-first CSS
- Components: shadcn/ui for modern React components
- Icons: Lucide React for consistent SVG icons
- Themes: next-themes for dark/light mode
- Notifications: Sonner for toast messages
- Image Gallery: yet-another-react-lightbox for image preview
- Development: code-inspector-plugin for debugging support
- Node.js 20+
- npm, yarn, or pnpm
- Clone the repository:
git clone https://github.com/your-username/feature-comments.git
cd feature-comments- Install dependencies:
npm install
# or
yarn install
# or
pnpm install- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev- Open http://localhost:3000 in your browser.
The project showcases four main scenarios:
- Multi-Features - Comprehensive comment functionality display
- Reply System - Hierarchical conversation threading
- Image Comments - Visual feedback with image galleries
- Product Cards - E-commerce integration examples
npm run dev # Start development server
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLint
npm run lint:fix # Fix ESLint issues automatically
npm run type-check # Run TypeScript type checking
npm run clean # Clean build cache
npm run analyze # Analyze bundle sizeThis project includes automated CI/CD pipeline using Vercel Deploy Hooks:
- Code Quality Checks: ESLint and TypeScript validation on every push
- Automatic Deployment: Deploy Hooks trigger production deployment when code quality passes
- Preview Deployments: Pull requests generate preview environments
- Create Vercel Project: Import your GitHub repository to Vercel
- Create Deploy Hook:
- Go to Project Settings → Git → Deploy Hooks
- Create a hook for
mainbranch
- Add GitHub Secret:
- Repository Settings → Secrets → Actions
- Add
VERCEL_DEPLOY_HOOK_URLwith the generated URL
For detailed deployment setup, see SETUP-GUIDE.md.
src/
├── app/ # Next.js app directory
├── components/ # React components
│ ├── comments/ # Comment-related components
│ ├── product/ # Product card components
│ └── ui/ # shadcn/ui components
├── contexts/ # React contexts
├── data/ # Mock data and JSON files
└── lib/ # Utility functions
Contributions are welcome! Please read our contributing guidelines and submit pull requests for any improvements.
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ using Next.js and modern web technologies.