Luxury cosmetics and beauty products e-commerce platform with B2B/B2C tiers, AI-powered recommendations, and referral system.
- Node.js 24.16.0
- pnpm 11.9.0
- Supabase account
- Shopify store
- Stripe account
- Clone the repository:
git clone https://github.com/hex-tech-lab/hex-diva.git
cd hex-diva- Install dependencies:
pnpm install- Set up environment variables:
cp .env.example .env.local
# Edit .env.local with your credentials- Start development server:
pnpm devVisit http://localhost:3000 to see the app.
| Location | Content | Purpose |
|---|---|---|
CLAUDE.md |
Infrastructure Coordinates & Core Laws | Frozen protocol, stack, architecture |
.memory/ |
Lessons Learned, Decisions, Progress Tracking | Session-specific insights & knowledge base |
docs/specs/ |
Technical Specifications & ADRs | Architecture Decision Records, PRD |
docs/history/ |
Handover Reports, Version Ledgers | Historical context, previous iterations |
docs/ops/ |
Deployment Checklists, Known Good State | Operational runbooks, verification gates |
- CLAUDE.md - Architecture, stack, and development guide (frozen protocol)
- .memory/LESSONS_INHERITED.md - 70+ days of hex-yt-intel proven practices
- docs/ops/KNOWN_GOOD_STATE_CHECKLIST.md - Verification checklist
- PROJECT_SPEC.md - Detailed feature requirements and user flows
docs/specs/ADR_001_*.md- Architecture decisions as they evolvedocs/history/HANDOVER_REPORT_*.md- Session handovers and progress.memory/SESSION_PROGRESS_*.md- Current session tracking
src/
├── app/ # Next.js App Router pages and API routes
├── components/ # Reusable React components
├── lib/ # Utilities, services, and helpers
├── types/ # TypeScript type definitions
├── styles/ # Global styles and Tailwind config
└── middleware.ts # Next.js middleware
# Development server
pnpm dev
# Production build
pnpm build
# Run production server
pnpm start
# Linting
pnpm lint
# Type checking
pnpm type-check
# Database migrations
pnpm db:migrate
# Seed database (development)
pnpm db:seed
# Code formatting
pnpm format- Next.js 16.2.6 (App Router)
- React 19
- TypeScript 5.6.2
- Tailwind CSS 4.0
- shadcn/ui components
- Supabase (PostgreSQL, Auth, Realtime, Storage)
- Next.js Route Handlers & Server Actions
- PostgreSQL with pgvector
- Shopify Admin API (product catalog, inventory)
- Stripe (payments)
- Shopify Payments (fallback)
- Vercel Edge Network
- Cloudflare CDN
- Redis (Upstash) for caching
- SendGrid + Resend for email
- Claude API for recommendations
- PostHog for analytics
- Sentry for error tracking
See .env.example for all required environment variables. Key ones:
NEXT_PUBLIC_SUPABASE_URL
NEXT_PUBLIC_SUPABASE_ANON_KEY
SUPABASE_SERVICE_ROLE_KEY
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY
STRIPE_SECRET_KEY
SHOPIFY_ADMIN_API_TOKEN
SHOPIFY_STOREFRONT_ACCESS_TOKEN
REDIS_URL
ANTHROPIC_API_KEY
- Branch:
develop - Vercel Preview Deployment
- Supabase staging project
- Branch:
main - Vercel Production Deployment
- Supabase production project
See CLAUDE.md for API endpoint documentation.
- Create a feature branch from
develop - Make your changes and commit with clear messages
- Push to your branch
- Create a pull request
- Page load time: < 2s
- Lighthouse score: 90+
- API response time: < 200ms (p95)
- Conversion rate: 2-3%
- HTTPS enforced
- CSRF protection
- XSS prevention
- SQL injection prevention (parameterized queries)
- Rate limiting
- GDPR compliant
For issues and feature requests, please open a GitHub issue.
Proprietary - Hex-Tech-Lab © 2024