simple-affilliate-site

Affiliate Pro - Next.js Affiliate Marketing Platform πŸš€

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.

🌟 Live Demo

Visit Live Site

✨ Key Features

πŸ›’ High-Converting Product System

πŸ“ SEO & Content Engine

πŸ› οΈ Powerful Admin Dashboard

πŸ—οΈ Tech Stack

πŸ“¦ Project Structure

β”œβ”€β”€ 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

⚑ Quick Start

1. Clone & Install

git clone https://github.com/mukithasan232/simple-affilliate-site.git
cd simple-affilliate-site
npm install

2. Configure Environment

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

3. Run Locally

npm run dev

Visit http://localhost:3000 to see the site. Visit http://localhost:3000/admin to manage products.

4. Deploy to Vercel

  1. Push your code to GitHub.
  2. Import the project into Vercel.
  3. Add the ADMIN_SECRET and DATABASE_URL environment variables in Vercel Settings.
  4. Deploy! Withe the database connected, your product updates will persist live.

πŸ“ License

This project is open source and available under the MIT License.