Skip to content

mehedi-pathan/Alpha-Net-BD

Repository files navigation

Alpha Net BD - Professional Domain & Hosting Platform

A comprehensive full-stack web application for domain registration and web hosting services in Bangladesh. Built with modern technologies and designed for scalability, performance, and exceptional user experience.

Alpha Net BD Next.js TypeScript Tailwind CSS

🌟 Overview

Alpha net bd - domain hosting provider

Alpha Net BD is a professional-grade domain registration and web hosting platform specifically designed for the Bangladesh market. The platform offers a complete suite of services including domain search and registration, multiple hosting tiers, SSL certificates, and comprehensive customer management tools.

πŸš€ Key Features

πŸ” Domain Services

  • Real-time Domain Search: Instant availability checking across 50+ TLDs
  • Domain Registration: Seamless registration process with automatic DNS setup
  • Domain Transfer: Easy domain transfer with free 1-year extension
  • Domain Management: Complete DNS management and domain settings
  • Bulk Domain Search: Search multiple domains simultaneously
  • Domain Suggestions: AI-powered alternative domain suggestions

πŸ–₯️ Hosting Solutions

  • Shared Hosting: Multiple tiers (Basic, Premium, Business)
  • VPS Hosting: Scalable virtual private servers
  • Dedicated Servers: High-performance dedicated hosting
  • SSL Certificates: Free and premium SSL options
  • Email Hosting: Professional email solutions
  • Website Builder: Drag-and-drop website creation tools

πŸ‘€ User Management

  • Secure Authentication: JWT-based authentication system
  • User Dashboard: Comprehensive service management interface
  • Billing System: Automated billing and invoice generation
  • Support Ticketing: Integrated customer support system
  • Account Management: Profile and preference management
  • Service Monitoring: Real-time service status and analytics

πŸ’³ E-commerce Features

  • Shopping Cart: Persistent cart with local storage
  • Multiple Payment Methods: Credit card, mobile banking, bank transfer
  • Order Management: Complete order tracking and history
  • Automated Provisioning: Instant service activation
  • Renewal Management: Automatic renewal notifications
  • Promotional System: Discount codes and special offers

πŸ›  Technology Stack

Frontend

  • Framework: Next.js 15 (App Router)
  • Language: TypeScript 5.0
  • Styling: Tailwind CSS v4
  • UI Components: shadcn/ui
  • Icons: Lucide React
  • Fonts: Geist Sans & Geist Mono
  • State Management: React Context API
  • Form Handling: React Hook Form with Zod validation

Backend & APIs

  • API Routes: Next.js API routes
  • Authentication: Custom JWT implementation
  • Database: Mock database with localStorage (production-ready for real DB)
  • Payment Processing: Mock payment gateway (Stripe/PayPal ready)
  • Email Service: Mock email service (SendGrid/Mailgun ready)
  • File Storage: Local storage (AWS S3/Cloudinary ready)

Development Tools

  • Package Manager: pnpm
  • Linting: ESLint with TypeScript rules
  • Formatting: Prettier
  • Git Hooks: Husky for pre-commit hooks
  • Testing: Jest and React Testing Library (configured)
  • Build Tool: Next.js built-in bundler

πŸ“ Complete Project Structure

``` alpha-net-bd/ β”œβ”€β”€ πŸ“ app/ # Next.js App Router β”‚ β”œβ”€β”€ πŸ“ (auth)/ # Authentication route group β”‚ β”‚ β”œβ”€β”€ πŸ“ login/ β”‚ β”‚ β”‚ └── πŸ“„ page.tsx # Login page β”‚ β”‚ └── πŸ“ register/ β”‚ β”‚ └── πŸ“„ page.tsx # Registration page β”‚ β”œβ”€β”€ πŸ“ about/ β”‚ β”‚ └── πŸ“„ page.tsx # About us page β”‚ β”œβ”€β”€ πŸ“ api/ # API routes β”‚ β”‚ β”œβ”€β”€ πŸ“ auth/ β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ login/route.ts # Login API β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ register/route.ts # Registration API β”‚ β”‚ β”‚ └── πŸ“„ logout/route.ts # Logout API β”‚ β”‚ β”œβ”€β”€ πŸ“ domains/ β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ check/route.ts # Domain availability check β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ register/route.ts # Domain registration β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ transfer/route.ts # Domain transfer β”‚ β”‚ β”‚ └── πŸ“„ suggestions/route.ts # Domain suggestions β”‚ β”‚ β”œβ”€β”€ πŸ“ hosting/ β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ plans/route.ts # Hosting plans β”‚ β”‚ β”‚ └── πŸ“„ provision/route.ts # Service provisioning β”‚ β”‚ β”œβ”€β”€ πŸ“ orders/ β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ route.ts # Order management β”‚ β”‚ β”‚ └── πŸ“„ [id]/route.ts # Individual order β”‚ β”‚ β”œβ”€β”€ πŸ“ payment/ β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ process/route.ts # Payment processing β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ webhook/route.ts # Payment webhooks β”‚ β”‚ β”‚ └── πŸ“„ methods/route.ts # Payment methods β”‚ β”‚ └── πŸ“ user/ β”‚ β”‚ β”œβ”€β”€ πŸ“„ profile/route.ts # User profile β”‚ β”‚ └── πŸ“„ services/route.ts # User services β”‚ β”œβ”€β”€ πŸ“ cart/ β”‚ β”‚ └── πŸ“„ page.tsx # Shopping cart β”‚ β”œβ”€β”€ πŸ“ checkout/ β”‚ β”‚ β”œβ”€β”€ πŸ“„ page.tsx # Checkout process β”‚ β”‚ └── πŸ“„ loading.tsx # Checkout loading β”‚ β”œβ”€β”€ πŸ“ contact/ β”‚ β”‚ └── πŸ“„ page.tsx # Contact page β”‚ β”œβ”€β”€ πŸ“ dashboard/ # User dashboard β”‚ β”‚ β”œβ”€β”€ πŸ“„ layout.tsx # Dashboard layout β”‚ β”‚ β”œβ”€β”€ πŸ“„ page.tsx # Dashboard home β”‚ β”‚ β”œβ”€β”€ πŸ“„ loading.tsx # Dashboard loading β”‚ β”‚ β”œβ”€β”€ πŸ“ domains/ β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ page.tsx # Domain management β”‚ β”‚ β”‚ └── πŸ“„ loading.tsx # Domains loading β”‚ β”‚ β”œβ”€β”€ πŸ“ hosting/ β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ page.tsx # Hosting management β”‚ β”‚ β”‚ └── πŸ“„ loading.tsx # Hosting loading β”‚ β”‚ β”œβ”€β”€ πŸ“ billing/ β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ page.tsx # Billing history β”‚ β”‚ β”‚ └── πŸ“„ loading.tsx # Billing loading β”‚ β”‚ β”œβ”€β”€ πŸ“ support/ β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ page.tsx # Support tickets β”‚ β”‚ β”‚ └── πŸ“„ loading.tsx # Support loading β”‚ β”‚ └── πŸ“ account/ β”‚ β”‚ β”œβ”€β”€ πŸ“„ page.tsx # Account settings β”‚ β”‚ └── πŸ“„ loading.tsx # Account loading β”‚ β”œβ”€β”€ πŸ“ domains/ β”‚ β”‚ β”œβ”€β”€ πŸ“„ page.tsx # Domain search β”‚ β”‚ └── πŸ“„ loading.tsx # Domain search loading β”‚ β”œβ”€β”€ πŸ“ hosting/ β”‚ β”‚ β”œβ”€β”€ πŸ“„ page.tsx # Hosting plans β”‚ β”‚ └── πŸ“„ loading.tsx # Hosting loading β”‚ β”œβ”€β”€ πŸ“ order-success/ β”‚ β”‚ β”œβ”€β”€ πŸ“„ page.tsx # Order confirmation β”‚ β”‚ └── πŸ“„ loading.tsx # Success loading β”‚ β”œβ”€β”€ πŸ“ ssl/ β”‚ β”‚ └── πŸ“„ page.tsx # SSL certificates β”‚ β”œβ”€β”€ πŸ“ vps/ β”‚ β”‚ └── πŸ“„ page.tsx # VPS hosting β”‚ β”œβ”€β”€ πŸ“ dedicated/ β”‚ β”‚ └── πŸ“„ page.tsx # Dedicated servers β”‚ β”œβ”€β”€ πŸ“ email/ β”‚ β”‚ └── πŸ“„ page.tsx # Email hosting β”‚ β”œβ”€β”€ πŸ“ help/ β”‚ β”‚ └── πŸ“„ page.tsx # Help center β”‚ β”œβ”€β”€ πŸ“ status/ β”‚ β”‚ └── πŸ“„ page.tsx # Server status β”‚ β”œβ”€β”€ πŸ“ privacy/ β”‚ β”‚ └── πŸ“„ page.tsx # Privacy policy β”‚ β”œβ”€β”€ πŸ“ terms/ β”‚ β”‚ └── πŸ“„ page.tsx # Terms of service β”‚ β”œβ”€β”€ πŸ“„ globals.css # Global styles β”‚ β”œβ”€β”€ πŸ“„ layout.tsx # Root layout β”‚ β”œβ”€β”€ πŸ“„ page.tsx # Homepage β”‚ β”œβ”€β”€ πŸ“„ not-found.tsx # 404 page β”‚ β”œβ”€β”€ πŸ“„ loading.tsx # Global loading β”‚ └── πŸ“„ error.tsx # Error boundary β”œβ”€β”€ πŸ“ components/ # Reusable components β”‚ β”œβ”€β”€ πŸ“ auth/ # Authentication components β”‚ β”‚ β”œβ”€β”€ πŸ“„ login-form.tsx # Login form β”‚ β”‚ β”œβ”€β”€ πŸ“„ register-form.tsx # Registration form β”‚ β”‚ β”œβ”€β”€ πŸ“„ social-auth.tsx # Social authentication β”‚ β”‚ β”œβ”€β”€ πŸ“„ protected-route.tsx # Route protection β”‚ β”‚ └── πŸ“„ auth-guard.tsx # Authentication guard β”‚ β”œβ”€β”€ πŸ“ checkout/ # Checkout components β”‚ β”‚ β”œβ”€β”€ πŸ“„ checkout-form.tsx # Checkout form β”‚ β”‚ β”œβ”€β”€ πŸ“„ payment-methods.tsx # Payment options β”‚ β”‚ β”œβ”€β”€ πŸ“„ order-summary.tsx # Order summary β”‚ β”‚ └── πŸ“„ billing-form.tsx # Billing information β”‚ β”œβ”€β”€ πŸ“ dashboard/ # Dashboard components β”‚ β”‚ β”œβ”€β”€ πŸ“„ dashboard-header.tsx # Dashboard header β”‚ β”‚ β”œβ”€β”€ πŸ“„ dashboard-sidebar.tsx # Dashboard navigation β”‚ β”‚ β”œβ”€β”€ πŸ“„ stats-cards.tsx # Statistics cards β”‚ β”‚ β”œβ”€β”€ πŸ“„ recent-orders.tsx # Recent orders β”‚ β”‚ └── πŸ“„ service-status.tsx # Service status β”‚ β”œβ”€β”€ πŸ“ domain/ # Domain components β”‚ β”‚ β”œβ”€β”€ πŸ“„ domain-search.tsx # Domain search form β”‚ β”‚ β”œβ”€β”€ πŸ“„ domain-suggestions.tsx # Domain suggestions β”‚ β”‚ β”œβ”€β”€ πŸ“„ domain-card.tsx # Domain result card β”‚ β”‚ β”œβ”€β”€ πŸ“„ domain-transfer.tsx # Domain transfer form β”‚ β”‚ └── πŸ“„ domain-management.tsx # Domain management β”‚ β”œβ”€β”€ πŸ“ hosting/ # Hosting components β”‚ β”‚ β”œβ”€β”€ πŸ“„ hosting-plan-card.tsx # Hosting plan card β”‚ β”‚ β”œβ”€β”€ πŸ“„ plan-comparison.tsx # Plan comparison table β”‚ β”‚ β”œβ”€β”€ πŸ“„ feature-list.tsx # Feature list β”‚ β”‚ └── πŸ“„ hosting-calculator.tsx # Price calculator β”‚ β”œβ”€β”€ πŸ“ layout/ # Layout components β”‚ β”‚ β”œβ”€β”€ πŸ“„ header.tsx # Site header β”‚ β”‚ β”œβ”€β”€ πŸ“„ footer.tsx # Site footer β”‚ β”‚ β”œβ”€β”€ πŸ“„ navigation.tsx # Navigation menu β”‚ β”‚ β”œβ”€β”€ πŸ“„ breadcrumb.tsx # Breadcrumb navigation β”‚ β”‚ └── πŸ“„ sidebar.tsx # Sidebar component β”‚ β”œβ”€β”€ πŸ“ marketing/ # Marketing components β”‚ β”‚ β”œβ”€β”€ πŸ“„ hero-section.tsx # Hero section β”‚ β”‚ β”œβ”€β”€ πŸ“„ features-grid.tsx # Features grid β”‚ β”‚ β”œβ”€β”€ πŸ“„ testimonials.tsx # Customer testimonials β”‚ β”‚ β”œβ”€β”€ πŸ“„ pricing-table.tsx # Pricing table β”‚ β”‚ β”œβ”€β”€ πŸ“„ cta-section.tsx # Call-to-action β”‚ β”‚ └── πŸ“„ stats-section.tsx # Statistics section β”‚ β”œβ”€β”€ πŸ“ ui/ # shadcn/ui components β”‚ β”‚ β”œβ”€β”€ πŸ“„ accordion.tsx # Accordion component β”‚ β”‚ β”œβ”€β”€ πŸ“„ alert-dialog.tsx # Alert dialog β”‚ β”‚ β”œβ”€β”€ πŸ“„ alert.tsx # Alert component β”‚ β”‚ β”œβ”€β”€ πŸ“„ avatar.tsx # Avatar component β”‚ β”‚ β”œβ”€β”€ πŸ“„ badge.tsx # Badge component β”‚ β”‚ β”œβ”€β”€ πŸ“„ button.tsx # Button component β”‚ β”‚ β”œβ”€β”€ πŸ“„ calendar.tsx # Calendar component β”‚ β”‚ β”œβ”€β”€ πŸ“„ card.tsx # Card component β”‚ β”‚ β”œβ”€β”€ πŸ“„ carousel.tsx # Carousel component β”‚ β”‚ β”œβ”€β”€ πŸ“„ chart.tsx # Chart component β”‚ β”‚ β”œβ”€β”€ πŸ“„ checkbox.tsx # Checkbox component β”‚ β”‚ β”œβ”€β”€ πŸ“„ command.tsx # Command component β”‚ β”‚ β”œβ”€β”€ πŸ“„ dialog.tsx # Dialog component β”‚ β”‚ β”œβ”€β”€ πŸ“„ dropdown-menu.tsx # Dropdown menu β”‚ β”‚ β”œβ”€β”€ πŸ“„ form.tsx # Form component β”‚ β”‚ β”œβ”€β”€ πŸ“„ input.tsx # Input component β”‚ β”‚ β”œβ”€β”€ πŸ“„ label.tsx # Label component β”‚ β”‚ β”œβ”€β”€ πŸ“„ navigation-menu.tsx # Navigation menu β”‚ β”‚ β”œβ”€β”€ πŸ“„ popover.tsx # Popover component β”‚ β”‚ β”œβ”€β”€ πŸ“„ progress.tsx # Progress component β”‚ β”‚ β”œβ”€β”€ πŸ“„ radio-group.tsx # Radio group β”‚ β”‚ β”œβ”€β”€ πŸ“„ scroll-area.tsx # Scroll area β”‚ β”‚ β”œβ”€β”€ πŸ“„ select.tsx # Select component β”‚ β”‚ β”œβ”€β”€ πŸ“„ separator.tsx # Separator component β”‚ β”‚ β”œβ”€β”€ πŸ“„ sheet.tsx # Sheet component β”‚ β”‚ β”œβ”€β”€ πŸ“„ skeleton.tsx # Skeleton loader β”‚ β”‚ β”œβ”€β”€ πŸ“„ slider.tsx # Slider component β”‚ β”‚ β”œβ”€β”€ πŸ“„ switch.tsx # Switch component β”‚ β”‚ β”œβ”€β”€ πŸ“„ table.tsx # Table component β”‚ β”‚ β”œβ”€β”€ πŸ“„ tabs.tsx # Tabs component β”‚ β”‚ β”œβ”€β”€ πŸ“„ textarea.tsx # Textarea component β”‚ β”‚ β”œβ”€β”€ πŸ“„ toast.tsx # Toast component β”‚ β”‚ β”œβ”€β”€ πŸ“„ toaster.tsx # Toast container β”‚ β”‚ β”œβ”€β”€ πŸ“„ toggle.tsx # Toggle component β”‚ β”‚ β”œβ”€β”€ πŸ“„ tooltip.tsx # Tooltip component β”‚ β”‚ β”œβ”€β”€ πŸ“„ use-mobile.tsx # Mobile hook β”‚ β”‚ └── πŸ“„ use-toast.ts # Toast hook β”‚ └── πŸ“„ theme-provider.tsx # Theme provider β”œβ”€β”€ πŸ“ contexts/ # React contexts β”‚ β”œβ”€β”€ πŸ“„ auth-context.tsx # Authentication context β”‚ β”œβ”€β”€ πŸ“„ cart-context.tsx # Shopping cart context β”‚ β”œβ”€β”€ πŸ“„ theme-context.tsx # Theme context β”‚ └── πŸ“„ notification-context.tsx # Notification context β”œβ”€β”€ πŸ“ hooks/ # Custom React hooks β”‚ β”œβ”€β”€ πŸ“„ use-auth.ts # Authentication hook β”‚ β”œβ”€β”€ πŸ“„ use-cart.ts # Cart management hook β”‚ β”œβ”€β”€ πŸ“„ use-mobile.ts # Mobile detection hook β”‚ β”œβ”€β”€ πŸ“„ use-toast.ts # Toast notifications hook β”‚ β”œβ”€β”€ πŸ“„ use-local-storage.ts # Local storage hook β”‚ └── πŸ“„ use-debounce.ts # Debounce hook β”œβ”€β”€ πŸ“ lib/ # Utility libraries β”‚ β”œβ”€β”€ πŸ“„ auth.ts # Authentication utilities β”‚ β”œβ”€β”€ πŸ“„ database.ts # Database utilities β”‚ β”œβ”€β”€ πŸ“„ domain-api.ts # Domain API service β”‚ β”œβ”€β”€ πŸ“„ payment-gateway.ts # Payment processing β”‚ β”œβ”€β”€ πŸ“„ email-service.ts # Email service β”‚ β”œβ”€β”€ πŸ“„ validation.ts # Form validation schemas β”‚ β”œβ”€β”€ πŸ“„ constants.ts # Application constants β”‚ β”œβ”€β”€ πŸ“„ types.ts # TypeScript type definitions β”‚ └── πŸ“„ utils.ts # General utilities β”œβ”€β”€ πŸ“ public/ # Static assets β”‚ β”œβ”€β”€ πŸ“ images/ # Image assets β”‚ β”‚ β”œβ”€β”€ πŸ“„ logo.png # Company logo β”‚ β”‚ β”œβ”€β”€ πŸ“„ hero-bg.jpg # Hero background β”‚ β”‚ β”œβ”€β”€ πŸ“„ testimonial-1.jpg # Testimonial images β”‚ β”‚ └── πŸ“„ ... # Other images β”‚ β”œβ”€β”€ πŸ“ icons/ # Icon assets β”‚ β”‚ β”œβ”€β”€ πŸ“„ favicon.ico # Favicon β”‚ β”‚ β”œβ”€β”€ πŸ“„ apple-touch-icon.png # Apple touch icon β”‚ β”‚ └── πŸ“„ ... # Other icons β”‚ └── πŸ“ documents/ # Document assets β”‚ β”œβ”€β”€ πŸ“„ terms.pdf # Terms of service β”‚ β”œβ”€β”€ πŸ“„ privacy.pdf # Privacy policy β”‚ └── πŸ“„ ... # Other documents β”œβ”€β”€ πŸ“ styles/ # Additional styles β”‚ β”œβ”€β”€ πŸ“„ globals.css # Global CSS styles β”‚ └── πŸ“„ components.css # Component-specific styles β”œβ”€β”€ πŸ“ types/ # TypeScript definitions β”‚ β”œβ”€β”€ πŸ“„ auth.ts # Authentication types β”‚ β”œβ”€β”€ πŸ“„ domain.ts # Domain-related types β”‚ β”œβ”€β”€ πŸ“„ hosting.ts # Hosting-related types β”‚ β”œβ”€β”€ πŸ“„ payment.ts # Payment types β”‚ └── πŸ“„ global.ts # Global type definitions β”œβ”€β”€ πŸ“ utils/ # Utility functions β”‚ β”œβ”€β”€ πŸ“„ formatters.ts # Data formatters β”‚ β”œβ”€β”€ πŸ“„ validators.ts # Input validators β”‚ β”œβ”€β”€ πŸ“„ helpers.ts # Helper functions β”‚ └── πŸ“„ constants.ts # Utility constants β”œβ”€β”€ πŸ“„ .env.local # Environment variables β”œβ”€β”€ πŸ“„ .env.example # Environment template β”œβ”€β”€ πŸ“„ .gitignore # Git ignore rules β”œβ”€β”€ πŸ“„ .eslintrc.json # ESLint configuration β”œβ”€β”€ πŸ“„ .prettierrc # Prettier configuration β”œβ”€β”€ πŸ“„ components.json # shadcn/ui configuration β”œβ”€β”€ πŸ“„ next.config.mjs # Next.js configuration β”œβ”€β”€ πŸ“„ package.json # Package dependencies β”œβ”€β”€ πŸ“„ pnpm-lock.yaml # Package lock file β”œβ”€β”€ πŸ“„ postcss.config.mjs # PostCSS configuration β”œβ”€β”€ πŸ“„ tailwind.config.ts # Tailwind configuration β”œβ”€β”€ πŸ“„ tsconfig.json # TypeScript configuration β”œβ”€β”€ πŸ“„ README.md # Project documentation └── πŸ“„ LICENSE # License file ```

πŸš€ Quick Start Guide

Prerequisites

  • Node.js: Version 18.0 or higher
  • Package Manager: pnpm (recommended), npm, or yarn
  • Git: For version control

Installation Steps

  1. Clone the Repository ```bash git clone https://github.com/your-username/alpha-net-bd.git cd alpha-net-bd ```

  2. Install Dependencies ```bash

    Using pnpm (recommended)

    pnpm install

    Using npm

    npm install

    Using yarn

    yarn install ```

  3. Environment Setup ```bash

    Copy environment template

    cp .env.example .env.local

    Edit environment variables

    nano .env.local ```

  4. Start Development Server ```bash

    Using pnpm

    pnpm dev

    Using npm

    npm run dev

    Using yarn

    yarn dev ```

  5. Open Application Navigate to http://localhost:3000 in your browser

Build for Production

```bash

Build the application

pnpm build

Start production server

pnpm start

Or export static files

pnpm export ```

πŸ”§ Configuration

Environment Variables

Create a .env.local file in the root directory:

```env

Application

NEXT_PUBLIC_APP_URL=http://localhost:3000 NEXT_PUBLIC_APP_NAME="Alpha Net BD"

Database (when using real database)

DATABASE_URL="your-database-url"

Authentication

JWT_SECRET="your-jwt-secret" JWT_EXPIRES_IN="7d"

Payment Gateway

STRIPE_PUBLIC_KEY="your-stripe-public-key" STRIPE_SECRET_KEY="your-stripe-secret-key" STRIPE_WEBHOOK_SECRET="your-stripe-webhook-secret"

Email Service

SMTP_HOST="your-smtp-host" SMTP_PORT=587 SMTP_USER="your-smtp-user" SMTP_PASS="your-smtp-password"

Domain API

DOMAIN_API_KEY="your-domain-api-key" DOMAIN_API_URL="your-domain-api-url"

File Storage

AWS_ACCESS_KEY_ID="your-aws-access-key" AWS_SECRET_ACCESS_KEY="your-aws-secret-key" AWS_S3_BUCKET="your-s3-bucket" AWS_REGION="your-aws-region" ```

Customization Options

Theme Customization

Modify app/globals.css to customize the color scheme:

```css @theme inline { --background: 222.2 84% 4.9%; --foreground: 210 40% 98%; --primary: 142.1 76.2% 36.3%; --primary-foreground: 355.7 100% 97.3%; /* Add more custom colors */ } ```

Component Styling

Update component styles in the respective component files or create custom CSS in styles/components.css.

Mock Data Configuration

Customize mock data in lib/database.ts:

```typescript export const mockDomains = [ { tld: '.com', price: 12.99, popular: true }, { tld: '.net', price: 14.99, popular: false }, // Add more TLDs ];

export const mockHostingPlans = [ { name: 'Basic', price: 4.99, features: ['10GB Storage', '100GB Bandwidth'], }, // Add more plans ]; ```

πŸ“± Features Deep Dive

Domain Management System

  • Real-time Search: Instant domain availability checking
  • Bulk Operations: Search and register multiple domains
  • DNS Management: Complete DNS record management
  • Domain Transfer: Seamless domain transfer process
  • Auto-renewal: Automatic domain renewal system

Hosting Infrastructure

  • Multiple Tiers: Basic, Premium, Business, VPS, Dedicated
  • Resource Monitoring: Real-time resource usage tracking
  • Backup System: Automated daily backups
  • Security Features: SSL certificates, malware scanning
  • Performance Optimization: CDN integration, caching

User Experience

  • Responsive Design: Mobile-first approach
  • Dark Theme: Professional dark theme with green accents
  • Accessibility: WCAG 2.1 AA compliant
  • Performance: Optimized for Core Web Vitals
  • SEO Optimized: Meta tags, structured data, sitemap

Security Features

  • Authentication: JWT-based secure authentication
  • Data Protection: Encrypted data storage
  • Payment Security: PCI DSS compliant payment processing
  • SSL/TLS: End-to-end encryption
  • Rate Limiting: API rate limiting and DDoS protection

πŸ§ͺ Testing

Running Tests

```bash

Run all tests

pnpm test

Run tests in watch mode

pnpm test:watch

Run tests with coverage

pnpm test:coverage

Run E2E tests

pnpm test:e2e ```

Test Structure

``` tests/ β”œβ”€β”€ mocks/ # Mock files β”œβ”€β”€ components/ # Component tests β”œβ”€β”€ pages/ # Page tests β”œβ”€β”€ utils/ # Utility tests β”œβ”€β”€ e2e/ # End-to-end tests └── setup.ts # Test setup ```

πŸš€ Deployment

Vercel Deployment (Recommended)

  1. Connect Repository

    • Push code to GitHub/GitLab/Bitbucket
    • Connect repository to Vercel
    • Configure environment variables
  2. Automatic Deployment

    • Every push to main branch triggers deployment
    • Preview deployments for pull requests
    • Automatic HTTPS and CDN

Other Deployment Options

Docker Deployment

```dockerfile FROM node:18-alpine WORKDIR /app COPY package*.json ./ RUN npm install COPY . . RUN npm run build EXPOSE 3000 CMD ["npm", "start"] ```

Static Export

```bash

Build static files

pnpm build pnpm export

Deploy to any static hosting

(Netlify, GitHub Pages, AWS S3, etc.)

```

πŸ”„ API Documentation

Authentication Endpoints

```typescript POST /api/auth/register POST /api/auth/login POST /api/auth/logout GET /api/auth/me ```

Domain Endpoints

```typescript GET /api/domains/check?domain=example.com POST /api/domains/register POST /api/domains/transfer GET /api/domains/suggestions?query=example ```

Hosting Endpoints

```typescript GET /api/hosting/plans POST /api/hosting/provision GET /api/hosting/services PUT /api/hosting/upgrade ```

Order Endpoints

```typescript POST /api/orders GET /api/orders GET /api/orders/[id] PUT /api/orders/[id] ```

🀝 Contributing

We welcome contributions! Please follow these guidelines:

Development Workflow

  1. Fork the Repository ```bash git fork https://github.com/your-username/alpha-net-bd.git ```

  2. Create Feature Branch ```bash git checkout -b feature/amazing-feature ```

  3. Make Changes

    • Follow coding standards
    • Add tests for new features
    • Update documentation
  4. Commit Changes ```bash git commit -m "feat: add amazing feature" ```

  5. Push and Create PR ```bash git push origin feature/amazing-feature ```

Coding Standards

  • TypeScript: Use strict TypeScript
  • ESLint: Follow ESLint rules
  • Prettier: Format code with Prettier
  • Naming: Use descriptive variable names
  • Comments: Add JSDoc comments for functions

Commit Convention

Follow Conventional Commits:

``` feat: add new feature fix: bug fix docs: documentation update style: formatting changes refactor: code refactoring test: add tests chore: maintenance tasks ```

πŸ“Š Performance Metrics

Core Web Vitals

  • LCP: < 2.5s (Largest Contentful Paint)
  • FID: < 100ms (First Input Delay)
  • CLS: < 0.1 (Cumulative Layout Shift)

Lighthouse Scores

  • Performance: 95+
  • Accessibility: 100
  • Best Practices: 100
  • SEO: 100

Bundle Analysis

```bash

Analyze bundle size

pnpm analyze

Check for unused dependencies

pnpm depcheck ```

πŸ”’ Security

Security Measures

  • HTTPS: Enforced HTTPS connections
  • CSP: Content Security Policy headers
  • CSRF: Cross-Site Request Forgery protection
  • XSS: Cross-Site Scripting prevention
  • SQL Injection: Parameterized queries
  • Rate Limiting: API rate limiting

Security Auditing

```bash

Run security audit

pnpm audit

Fix vulnerabilities

pnpm audit fix ```

πŸ“ˆ Monitoring & Analytics

Performance Monitoring

  • Vercel Analytics: Built-in performance monitoring
  • Core Web Vitals: Real user metrics
  • Error Tracking: Automatic error reporting

Business Analytics

  • User Behavior: Track user interactions
  • Conversion Rates: Monitor conversion funnels
  • Revenue Tracking: Track sales and revenue

πŸ†˜ Troubleshooting

Common Issues

Build Errors

```bash

Clear Next.js cache

rm -rf .next

Clear node_modules

rm -rf node_modules pnpm install ```

TypeScript Errors

```bash

Check TypeScript configuration

pnpm tsc --noEmit

Update type definitions

pnpm update @types/* ```

Styling Issues

```bash

Rebuild Tailwind CSS

pnpm build:css

Check Tailwind configuration

npx tailwindcss --help ```

Getting Help

  1. Documentation: Check this README and inline comments
  2. Issues: Search existing GitHub issues
  3. Discussions: Join GitHub discussions
  4. Support: Contact support@alphanetbd.com

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘₯ Team

Core Team

Contributors

πŸ™ Acknowledgments

Technologies

  • Next.js Team - Amazing React framework
  • Vercel - Deployment and hosting platform
  • shadcn/ui - Beautiful UI component library
  • Tailwind CSS - Utility-first CSS framework
  • Lucide - Beautiful icon library

Inspiration

  • Modern hosting providers for UX patterns
  • Bangladesh market research for localization
  • Industry best practices for security and performance

πŸ“ž Support & Contact

Business Inquiries

Technical Support

Social Media


Alpha Net BD - Empowering Bangladesh's digital future with reliable domain and hosting solutions.

Built with ❀️ in Bangladesh

About

Alpha Net BD - A comprehensive full-stack web application for domain registration and web hosting services in Bangladesh. Built with modern technologies and designed for scalability, performance, and exceptional user experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors