Affiliate Pro is a high-performance, SEO-optimized affiliate marketing platform built with Next.js 15, TypeScript, and Neon Postgres. It features a premium design, dynamic blog system, real-time product management, and automated Amazon scraping capabilities.
ADMIN_SECRET).βββ src/
β βββ app/ # Next.js App Router pages & API routes
β β βββ api/ # Backend API (Products, Scraper, Admin)
β β βββ admin/ # Admin Dashboard
β β βββ blog/ # Blog System
β β βββ categories/ # Category Landing Pages
β β βββ product/ # Product Details Pages
β β βββ search/ # Search Results Page
β β βββ page.tsx # Homepage
β βββ components/ # Reusable UI Components
β βββ data/ # Initial JSON Data (Seeding)
β βββ lib/ # Utilities (DB Config, formatting)
βββ public/ # Static Assets
βββ schema.sql # Database Schema
βββ next.config.ts # Next.js Configuration
git clone https://github.com/mukithasan232/simple-affilliate-site.git
cd simple-affilliate-site
npm install
Create a .env.local file in the root directory:
# Admin Password (default: admin123)
ADMIN_SECRET=your_secret_password
# Database Connection (Neon Postgres)
DATABASE_URL=postgresql://user:password@host/neondb?sslmode=require
npm run dev
Visit http://localhost:3000 to see the site.
Visit http://localhost:3000/admin to manage products.
ADMIN_SECRET and DATABASE_URL environment variables in Vercel Settings.This project is open source and available under the MIT License.