A comprehensive e-commerce platform for garment hangers, built as a clone of the original kavihangbro.com website. Features a modern Next.js frontend with a complete admin dashboard for product and category management.
- Homepage: Exact clone of kavihangbro.com with hero section, features showcase, and testimonials
- Product Catalogue: Dynamic product display with real-time filtering and sorting
- Contact Page: Professional contact form and business information
- Responsive Design: Mobile-first approach with Tailwind CSS
- Product Management: Create, read, update, and delete products
- Category Management: Full CRUD operations for product categories
- Image Upload: Support for both file upload and URL-based images
- Default Categories: Auto-seeding with 17 predefined garment hanger categories
- Multi-Category Selection: Products can belong to multiple categories
- Tabbed Interface: Organized admin panel with separate product and category tabs
- Hanger Type: Plastic, Wood, Metal, Wire, Specialty
- Garment Type: Suits, Dresses, Shirts, Pants, Lingerie, Children's, Heavy Coats
- Hook Type: Standard, Non-Slip, Swivel, Heavy Duty, Cascade
- Sorting Options: Name (A-Z, Z-A), Price (Low-High, High-Low)
- Real-time Updates: Instant filtering without page reloads
- Framework: Next.js 15.4.2 with App Router
- Frontend: React 19.1.0 with TypeScript
- Styling: Tailwind CSS 4 with responsive design
- Database: SQLite with sqlite3 package
- API: RESTful endpoints for products and categories
- Image Handling: File upload with preview functionality
-
Clone the repository
git clone <your-repo-url> cd web
-
Install dependencies
npm install
-
Run the development server
npm run dev
-
Access the application
- Homepage: http://localhost:3000
- Catalogue: http://localhost:3000/catalogue
- Admin Panel: http://localhost:3000/admin
- Contact: http://localhost:3000/contact
src/
├── app/
│ ├── admin/ # Admin dashboard
│ ├── api/
│ │ ├── products/ # Product API endpoints
│ │ └── categories/ # Category API endpoints
│ ├── catalogue/ # Product catalogue page
│ ├── contact/ # Contact page
│ ├── globals.css # Global styles
│ ├── layout.tsx # Root layout
│ └── page.tsx # Homepage
└── components/
├── Header.tsx # Navigation header
└── Footer.tsx # Site footer
GET /api/products- Fetch all productsPOST /api/products- Create new productPUT /api/products- Update existing productDELETE /api/products- Delete product
GET /api/categories- Fetch all categoriesPOST /api/categories- Create new categoryPUT /api/categories- Update existing categoryDELETE /api/categories- Delete category
- id (INTEGER PRIMARY KEY)
- name (TEXT NOT NULL)
- description (TEXT)
- price (REAL)
- image (TEXT)
- categories (TEXT) -- JSON array of category IDs- id (INTEGER PRIMARY KEY)
- name (TEXT NOT NULL UNIQUE)The system comes pre-loaded with 17 garment hanger categories:
- Plastic Hangers, Wood Hangers, Metal Hangers, Wire Hangers, Specialty Hangers
- Suit Hangers, Dress Hangers, Shirt Hangers, Pants Hangers, Lingerie Hangers
- Children's Hangers, Heavy Coat Hangers
- Standard Hook, Non-Slip Hook, Swivel Hook, Heavy Duty Hook, Cascade Hook
This project is licensed under the MIT License.
Built with ❤️ using Next.js and modern web technologies.