Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Priyanshu471/ad-management/llms.txt

Use this file to discover all available pages before exploring further.

The Ad Management System is a full-stack platform that streamlines the entire ad campaign lifecycle — from creation and targeting to analytics and media management. Three distinct role-based dashboards serve Admins, Advertisers, and Content Creators, each with tailored tools and protected routes.

Quickstart

Clone the repo, set up MongoDB, and run the app locally in minutes.

Architecture

Understand the Next.js App Router structure, data flow, and Zustand stores.

Authentication

Learn how role-based login and registration work across all three user roles.

API Reference

Explore all REST API endpoints for campaigns, users, and authentication.

Role-Based Dashboards

Every user signs in and is routed to their dedicated portal based on their assigned role.

Advertiser

Create campaigns, track performance metrics, view analytics, and manage media assets.

Content Creator

Browse available campaigns, manage your profile, and track earnings and engagement.

Admin

Manage all users, review campaigns, configure system settings, and monitor finances.

Key Features

Campaign Creation

Full campaign builder with targeting options — demographics, interests, location, age range, and income range.

Campaign Analytics

Per-campaign CTR charts and audience breakdown visualizations powered by ApexCharts.

Media Library

Centralized repository for images, videos, and logos used across campaigns.

User Management

Admin tools to view, manage, and moderate all advertisers and content creators.

Getting Started

1

Clone and install

Clone the repository and install dependencies with npm.
2

Configure MongoDB

Set the MONGODB_URI environment variable in your .env.local file.
3

Run the dev server

Start the Next.js development server with npm run dev.
4

Register and explore

Visit http://localhost:3000/register, pick a role, and explore your dashboard.
Jump straight to the Quickstart for a step-by-step setup walkthrough with all required environment variables.

Build docs developers (and LLMs) love