Technical Guide
Architecture, deployment, and technical implementation details
Tech Stack
Frontend
- β’ Next.js 15 (App Router)
- β’ React 19
- β’ TypeScript
- β’ Tailwind CSS 4
- β’ Radix UI Components
Backend
- β’ Next.js API Routes
- β’ Prisma ORM
- β’ PostgreSQL 14+
- β’ Redis (caching & rate limiting)
- β’ NextAuth.js
Database Schema
Core Models
- β’ Domain - Core domain information and metrics
- β’ User - User accounts and authentication
- β’ Sale - Transaction records and status
- β’ DomainMetrics - SEO and traffic data
- β’ AnalyticsMetrics - Google Analytics data
- β’ Newsletter - Newsletter subscribers
Deployment
Production deployment on Vercel
# Install Vercel CLI
npm i -g vercel
# Deploy to production
vercel --prodRequired environment variables:
- DATABASE_URL (PostgreSQL connection)
- REDIS_URL (Upstash Redis)
- NEXTAUTH_SECRET & NEXTAUTH_URL
- RESEND_API_KEY (email)
- STRIPE_SECRET_KEY & RAZORPAY_KEY
Security Architecture
Layer 1: Network Security
HTTPS enforcement, security headers, rate limiting
Layer 2: Application Security
CSRF protection, input validation, SQL injection prevention
Layer 3: Authentication Security
NextAuth with 2FA, secure session management, password hashing
Layer 4: Data Security
Encrypted sensitive data, audit logging, secure webhooks
Project Structure
graburl/ βββ src/ β βββ app/ # Next.js pages & API routes β β βββ api/ # API endpoints β β βββ admin/ # Admin dashboard β β βββ domains/ # Domain pages β β βββ wiki/ # Documentation β βββ components/ # React components β βββ lib/ # Utilities & helpers β βββ emails/ # Email templates β βββ contexts/ # React contexts βββ prisma/ β βββ schema.prisma # Database schema βββ public/ # Static assets βββ scripts/ # Utility scripts