No description
  • TypeScript 98.6%
  • CSS 1.1%
  • JavaScript 0.3%
Find a file
2026-10-28 13:55:01 +07:00
.vscode feat: complete ExclusiveClub platform with admin screening, coin paywall, bookings, and topup system 2026-10-28 13:55:01 +07:00
prisma feat: complete ExclusiveClub platform with admin screening, coin paywall, bookings, and topup system 2026-10-28 13:55:01 +07:00
public feat: complete ExclusiveClub platform with admin screening, coin paywall, bookings, and topup system 2026-10-28 13:55:01 +07:00
scripts feat: complete ExclusiveClub platform with admin screening, coin paywall, bookings, and topup system 2026-10-28 13:55:01 +07:00
src feat: complete ExclusiveClub platform with admin screening, coin paywall, bookings, and topup system 2026-10-28 13:55:01 +07:00
.gitignore feat: complete ExclusiveClub platform with admin screening, coin paywall, bookings, and topup system 2026-10-28 13:55:01 +07:00
AGENTS.md Initial commit from Create Next App 2026-10-28 13:10:17 +07:00
eslint.config.mjs Initial commit from Create Next App 2026-10-28 13:10:17 +07:00
next.config.ts Initial commit from Create Next App 2026-10-28 13:10:17 +07:00
package-lock.json feat: complete ExclusiveClub platform with admin screening, coin paywall, bookings, and topup system 2026-10-28 13:55:01 +07:00
package.json feat: complete ExclusiveClub platform with admin screening, coin paywall, bookings, and topup system 2026-10-28 13:55:01 +07:00
README.md feat: complete ExclusiveClub platform with admin screening, coin paywall, bookings, and topup system 2026-10-28 13:55:01 +07:00
tsconfig.json Initial commit from Create Next App 2026-10-28 13:10:17 +07:00

ExclusiveClub Platform (ระบบ VIP Escort & Premium Content)

แพลตฟอร์มพรีเมียมสำหรับการนัดหมายเพื่อนเที่ยว/นางแบบ (Exclusive Companion) และปลดล็อคคอนเทนต์รูปภาพพิเศษด้วยคอยน์ภายในระบบ พร้อมระบบคัดกรองความปลอดภัยโดยแอดมิน (Admin Gate)


🌟 ฟีเจอร์หลักของระบบ (Core Features)

  1. ระบบคัดกรองสาวๆ โดยแอดมิน (Admin Screening & Status Gate):

    • สาวๆ เมื่อสมัครสมาชิก ระบบจะตั้งสถานะเป็น PENDING ทันที และจะถูกบล็อกไม่ให้เข้าสู่ระบบได้ จนกว่าแอดมินจะตรวจสอบและกดอนุมัติ
    • แอดมินมีแดชบอร์ดเฉพาะสำหรับดูข้อมูล สัดส่วน รูปถ่าย และเอกสารยืนยันตัวตน พร้อมปุ่มกด อนุมัติ (Approve) หรือ ปฏิเสธ (Reject)
  2. ระบบคอยน์ & Paywall ปลดล็อครูปภาพ (Production-Grade Media Security):

    • เซิร์ฟเวอร์จะสร้างภาพ Teaser เบลอ (Low-res Gaussian Blur via Sharp) อัตโนมัติเมื่อสาวๆ อัปโหลด
    • ภาพต้นฉบับความละเอียดสูงจะถูกเก็บในระบบไฟล์ที่มีการป้องกัน
    • ลูกค้าต้องใช้คอยน์ปลดล็อค โดยระบบจะตัดคอยน์ผ่าน Database Transaction (ACID) และแบ่งรายได้ให้นางแบบตามเปอร์เซ็นต์คอมมิชชั่นที่แอดมินตั้งไว้
  3. ระบบนัดเจอ และ ขอคลิปส่วนตัว (Admin-Controlled Pricing + Escrow Hold):

    • แอดมินเป็นผู้กำหนดราคาบริการกลาง:
      • ราคานัดเจอ (Meetup): ค่าเริ่มต้น 5,000 คอยน์ (แอดมินปรับเปลี่ยนได้)
      • ราคาขอคลิปพรีเมียม (Clip): ค่าเริ่มต้น 1,000 คอยน์ (แอดมินปรับเปลี่ยนได้)
      • ค่าธรรมเนียมแพลตฟอร์ม (Platform Commission %): ค่าเริ่มต้น 20%
    • ระบบ Escrow (พักเหรียญ): เมื่อลูกค้ากดนัดเจอ คอยน์จะถูกล็อคไว้ที่ส่วนกลาง หากนางแบบกดยอมรับ คอยน์จึงจะโอนเข้ากระเป๋านางแบบ หากปฏิเสธ ระบบจะคืนคอยน์ให้ลูกค้า 100%
  4. ระบบเติมเงิน (Top-up & Slip Verification):

    • ลูกค้าเลือกแพ็กเกจคอยน์ สแกน PromptPay QR Code และแนบสลิปโอนเงิน
    • แอดมินสามารถเปิดดูรูปสลิป ตรวจสอบยอด และกดอนุมัติเพื่อเติมคอยน์เข้ากระเป๋าลูกค้าได้ทันที
    • มีบันทึกประวัติธุรกรรมคอยน์ (Transaction Ledger) อย่างละเอียด

🔑 บัญชีทดสอบ (Demo Accounts)

ทุกบัญชีมีรหัสผ่านและข้อมูลพร้อมทดสอบทันที:

บทบาท (Role) อีเมล (Email) รหัสผ่าน (Password) คำอธิบาย
ผู้ดูแลระบบ (Admin) admin@exclusiveclub.com admin123 แดชบอร์ดคัดกรองสาวๆ, ตรวจสลิป, ตั้งราคา
นางแบบ (Approved Model) alice@exclusiveclub.com model123 นางแบบที่อนุมัติแล้ว โพสต์รูปได้, รับงานนัดเจอได้
นางแบบ (Pending Model) charlotte@exclusiveclub.com model123 ทดสอบระบบคัดกรอง: พยายามล็อกอินจะถูกบล็อก
ลูกค้า VIP (VIP Client) client@exclusiveclub.com client123 มี 15,000 คอยน์ สำหรับทดลองปลดล็อครูปและนัดหมาย

(หมายเหตุ: บนหน้าเว็บมีปุ่ม Quick Demo Login ให้คลิกเข้าสู่ระบบได้ใน 1 คลิกโดยไม่ต้องพิมพ์)


🚀 วิธีการติดตั้งและรันระบบ (Getting Started)

  1. ติดตั้ง Dependencies:

    npm install
    
  2. เตรียมฐานข้อมูลและ Seed ข้อมูลเริ่มต้น:

    npm run seed
    
  3. เริ่มเซิร์ฟเวอร์สำหรับพัฒนา (Development Server):

    npm run dev
    

    เปิดบราวเซอร์ที่: http://localhost:3000

  4. ทดสอบ Build สำหรับ Production:

    npm run build
    npm run start
    

🛠️ โครงสร้างโปรเจกต์ (Project Structure)

ExclusiveClub_Platform/
├── prisma/
│   ├── schema.prisma            # Database Models (User, Post, Booking, CoinTransaction, TopupRequest)
│   └── seed.ts                  # Seed script with test accounts
├── scripts/
│   └── test_workflow.ts         # Automated E2E test verification script
├── src/
│   ├── app/
│   │   ├── api/
│   │   │   ├── admin/           # Model approval, settings, stats, slips APIs
│   │   │   ├── auth/            # Login, Register, Logout, Me APIs (with Status Barrier)
│   │   │   ├── bookings/        # Escrow booking & accept/reject APIs
│   │   │   ├── posts/           # Media paywall & coin unlock APIs
│   │   │   ├── upload/          # Sharp image processing & teaser generator API
│   │   │   └── wallet/          # Topup & transaction history APIs
│   │   ├── globals.css          # Dark & Gold VIP theme styling
│   │   ├── layout.tsx           # Prompt Google Font & Root layout
│   │   └── page.tsx             # Main Controller & Dashboard router
│   ├── components/
│   │   ├── AdminDashboard.tsx   # Model screening, pricing, slip verification
│   │   ├── ClientDashboard.tsx  # Feed, Paywall cards, Booking modals, Unlocked library
│   │   ├── LoginScreen.tsx      # Sign-in, Model application form, Quick demo login
│   │   ├── ModelDashboard.tsx   # Pending review gate, Post creator, Order management
│   │   ├── Navbar.tsx           # VIP branding, Coin balance, demo switcher
│   │   ├── TopupModal.tsx       # PromptPay QR & slip upload
│   │   └── TransactionHistoryModal.tsx # Coin ledger modal
│   └── lib/
│       ├── auth.ts              # Password hashing & JWT session management
│       ├── prisma.ts            # Prisma client singleton
│       └── storage.ts           # Sharp image processing & blur teaser generator