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 --prod

Required 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