Skip to content

Repository files navigation

💬 Feature Comments

A modern, feature-rich comment display system built with Next.js, featuring e-commerce platform design style with comprehensive functionality and multi-scenario applications.

✨ Features

  • 🎨 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

🛠️ Tech Stack

🚀 Getting Started

Prerequisites

  • Node.js 20+
  • npm, yarn, or pnpm

Installation

  1. Clone the repository:
git clone https://github.com/your-username/feature-comments.git
cd feature-comments
  1. Install dependencies:
npm install
# or
yarn install
# or
pnpm install
  1. Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
  1. Open http://localhost:3000 in your browser.

📱 Demo Scenarios

The project showcases four main scenarios:

  1. Multi-Features - Comprehensive comment functionality display
  2. Reply System - Hierarchical conversation threading
  3. Image Comments - Visual feedback with image galleries
  4. Product Cards - E-commerce integration examples

🛠️ Available Scripts

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 size

🚀 Deployment

This 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

Quick Setup

  1. Create Vercel Project: Import your GitHub repository to Vercel
  2. Create Deploy Hook:
    • Go to Project Settings → Git → Deploy Hooks
    • Create a hook for main branch
  3. Add GitHub Secret:
    • Repository Settings → Secrets → Actions
    • Add VERCEL_DEPLOY_HOOK_URL with the generated URL

For detailed deployment setup, see SETUP-GUIDE.md.

📂 Project Structure

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

🤝 Contributing

Contributions are welcome! Please read our contributing guidelines and submit pull requests for any improvements.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔗 Links


Built with ❤️ using Next.js and modern web technologies.

About

an components about feature comments

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages