Skip to content

shishir1337/maneelclub

Repository files navigation

πŸ›οΈ Maneel Club

Premium E-Commerce Platform | Modern Clothing Brand Experience

A full-stack e-commerce solution built with cutting-edge technologies for Bangladesh's premier clothing brand

Next.js React TypeScript Prisma PostgreSQL Tailwind CSS

Better Auth ImageKit Zustand


πŸ“‹ Table of Contents


✨ Overview

Maneel Club is a production-ready, full-stack e-commerce platform designed specifically for premium clothing brands. Built with modern web technologies, it delivers a lightning-fast shopping experience for customers and a powerful, intuitive admin dashboard for managing your entire business.

🎯 Key Highlights

  • ⚑ Blazing Fast - Built on Next.js 16 with React Server Components
  • 🎨 Beautiful UI - Modern, responsive design with Tailwind CSS 4
  • πŸ”’ Secure - Better Auth with session management and rate limiting
  • πŸ“¦ Scalable - ImageKit CDN for optimized image delivery
  • πŸ’³ Local Payments - Cash on Delivery, bKash, Nagad, Rocket support
  • πŸ“Š Analytics Ready - Meta Pixel & Google Tag Manager integration
  • 🚚 Smart Shipping - Zone-based delivery (Dhaka & Outside Dhaka)

πŸš€ Features

πŸ›’ Customer Storefront

Feature Description
πŸͺ Shop & Browse Intuitive product browsing with category filters and search functionality
🎨 Product Details Rich product pages with variants (size, color), image galleries, size guides, and related products
πŸ›οΈ Shopping Cart Seamless cart management with real-time updates
πŸ’° Checkout Streamlined checkout with city-based shipping calculation (Dhaka / Outside Dhaka)
πŸ’³ Payment Options Support for Cash on Delivery (COD), bKash, Nagad, and Rocket
πŸ‘€ User Accounts Complete user profiles with address management and order history
πŸ“± Mobile Optimized Fully responsive, mobile-first design with touch-friendly controls
πŸ” SEO Optimized Meta tags, sitemap, robots.txt, and optional analytics integration

πŸŽ›οΈ Admin Dashboard

Module Capabilities
πŸ“Š Dashboard Real-time overview with key metrics and quick access to important data
πŸ“¦ Products Full CRUD operations, variant management, attribute assignment, and ImageKit integration
πŸ“ Categories Flexible category management with product assignment
πŸ“‹ Orders Complete order management with status tracking, invoice generation, and customer details
πŸ‘₯ Customers Customer database with profile information and order history
🎠 Hero Slides Dynamic homepage carousel management
πŸ™οΈ Cities Delivery zone configuration and shipping rate management
🏷️ Attributes Global attribute system (sizes, colors, etc.) with custom values
βš™οΈ Settings Comprehensive site-wide settings and configuration
πŸ“ˆ Analytics Built-in analytics views and data visualization

πŸ”§ Technical Features

  • πŸ” Authentication - Better Auth with email/password, secure sessions, and rate limiting
  • πŸ—„οΈ Database - PostgreSQL with Prisma ORM, migrations, and type-safe queries
  • πŸ“Έ Image Storage - ImageKit CDN (primary) with automatic optimization, fallback to MinIO or local storage
  • 🎯 State Management - Zustand for cart and UI state
  • βœ… Form Validation - React Hook Form with Zod schema validation
  • 🎨 UI Components - Radix UI primitives with Tailwind CSS 4 and shadcn-style components
  • πŸš€ Performance - Server-side rendering, code splitting, and optimized image delivery

πŸ› οΈ Tech Stack

Layer Technology Purpose
Framework Next.js 16 (App Router) React framework with SSR and API routes
UI Library React 19 Modern React with Server Components
Styling Tailwind CSS 4 Utility-first CSS framework
Components Radix UI + Lucide Icons Accessible component primitives
Language TypeScript 5 Type-safe JavaScript
Database PostgreSQL Robust relational database
ORM Prisma 7 Type-safe database access
Authentication Better Auth Secure auth with sessions
File Storage ImageKit (Primary) CDN with image optimization
State Zustand Lightweight state management
Forms React Hook Form + Zod Form handling and validation
Package Manager pnpm Fast, disk space efficient

πŸ“Έ Screenshots

🏠 Homepage

Homepage

More screenshots coming soon...


⚑ Quick Start

πŸ“‹ Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js >= 20.19.0 (Download)
  • pnpm (Install) or npm/yarn
  • PostgreSQL (Download)
  • ImageKit Account (Recommended) - Sign up for optimized image delivery
  • MinIO (Optional) - For S3-compatible storage fallback

πŸš€ Installation

1️⃣ Clone the Repository

git clone https://github.com/shishir1337/maneelclub.git
cd maneelclub

2️⃣ Install Dependencies

pnpm install

3️⃣ Set Up Environment Variables

Copy the example environment file:

cp .env.example .env.local

Configure the following variables:

Variable Required Description
DATABASE_URL βœ… PostgreSQL connection string
BETTER_AUTH_SECRET βœ… Secret key for Better Auth (generate with npx @better-auth/cli secret)
BETTER_AUTH_URL βœ… Full app URL (e.g., http://localhost:3000)
NEXT_PUBLIC_APP_URL βœ… Public app URL
NEXT_PUBLIC_WHATSAPP_NUMBER ❌ WhatsApp contact number
IMAGEKIT_PRIVATE_KEY ⭐ ImageKit private key (recommended for production)
IMAGEKIT_URL_ENDPOINT ❌ ImageKit URL endpoint (e.g., https://ik.imagekit.io/your-id)
IMAGEKIT_UPLOAD_FOLDER ❌ ImageKit upload folder (default: maneelclub)
IMAGEKIT_UPLOAD_QUALITY ❌ Image upload quality 1-100 (default: 80)
MINIO_* ❌ MinIO configuration (fallback if ImageKit not configured)
META_PIXEL_ID, META_CAPI_ACCESS_TOKEN ❌ Meta Pixel / Conversions API (optional)

4️⃣ Set Up Database

Run migrations and seed the database:

pnpm db:migrate
pnpm db:seed

5️⃣ Start Development Server

pnpm dev

πŸŽ‰ You're all set! Visit:


πŸ“ Project Structure

maneelclub/
β”œβ”€β”€ prisma/                 # Database schema and migrations
β”‚   β”œβ”€β”€ schema.prisma      # Prisma schema definition
β”‚   └── migrations/        # Database migration files
β”œβ”€β”€ public/                 # Static assets
β”‚   └── uploads/           # Local file uploads (fallback)
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/               # Next.js App Router pages
β”‚   β”‚   β”œβ”€β”€ (admin)/       # Admin dashboard routes
β”‚   β”‚   β”œβ”€β”€ (shop)/        # Storefront routes
β”‚   β”‚   β”œβ”€β”€ api/           # API routes
β”‚   β”‚   └── auth/          # Authentication pages
β”‚   β”œβ”€β”€ actions/           # Server actions
β”‚   β”‚   β”œβ”€β”€ admin/         # Admin-specific actions
β”‚   β”‚   └── ...            # Other actions
β”‚   β”œβ”€β”€ components/        # React components
β”‚   β”‚   β”œβ”€β”€ admin/         # Admin components
β”‚   β”‚   └── ...            # Shared components
β”‚   β”œβ”€β”€ lib/               # Utility libraries
β”‚   β”‚   β”œβ”€β”€ auth.ts        # Better Auth configuration
β”‚   β”‚   β”œβ”€β”€ storage.ts     # Storage service (ImageKit/MinIO/Local)
β”‚   β”‚   └── ...            # Other utilities
β”‚   β”œβ”€β”€ schemas/           # Zod validation schemas
β”‚   └── store/             # Zustand stores
β”œβ”€β”€ .env.example           # Environment variables template
β”œβ”€β”€ next.config.ts         # Next.js configuration
β”œβ”€β”€ package.json           # Dependencies and scripts
└── README.md             # This file

βš™οΈ Configuration

Site Settings

  • Store Information - src/lib/constants.ts
  • Shipping Rates - src/lib/constants.ts
  • Payment Methods - src/lib/constants.ts
  • App Settings - Admin Dashboard β†’ Settings or src/lib/settings.ts

Storage Configuration

The platform supports multiple storage backends with automatic fallback:

  1. ImageKit (Primary) - CDN with automatic image optimization
  2. MinIO (Fallback) - S3-compatible object storage
  3. Local Filesystem (Fallback) - public/uploads/ directory

Configure storage via environment variables (see Quick Start).


πŸ“ Scripts

Command Description
pnpm dev Start Next.js development server
pnpm build Create production build
pnpm start Start production server
pnpm lint Run ESLint
pnpm db:migrate Run Prisma migrations
pnpm db:push Push schema changes without migrations
pnpm db:seed Seed database with sample data
pnpm db:studio Open Prisma Studio (database GUI)
pnpm db:reset Reset database and re-run migrations ⚠️

πŸ‘¨β€πŸ’» Developer

Md. Shishir Ahmed

Email GitHub Facebook WhatsApp


πŸ“„ License

Proprietary - All rights reserved.


Made with ❀️ for Maneel Club

⭐ Star this repo if you find it helpful!

About

Maneel Club is a full-stack e-commerce web application built for a premium clothing brand in Bangladesh.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages