This repository hosts the backend for the CPA Network, a robust and scalable platform designed for managing affiliate marketing campaigns. It provides the core infrastructure for tracking, reporting, and optimizing performance for Cost Per Action (CPA) campaigns, and now includes a server-rendered user interface for affiliates.
Keywords: Affiliate Tracking Software, CPA Platform, Affiliate Management Platform, Performance Marketing Backend and UI
This project now includes a server-rendered Affiliate User Interface, This UI provides an out-of-the-box experience for affiliates to manage their campaigns and view their performance.
Key functionalities include:
- Affiliate Login & Authentication: Secure web-based login for affiliates.
- Main Dashboard View: A summary of performance metrics (clicks, conversions, earnings) upon login.
- Offer Browsing: Ability to browse, search, and filter available offers.
- Detailed Reports
- Affiliate Registration: Allows new affiliates to sign up and manage their accounts.
- Offer Management: Comprehensive tools for creating, configuring, and managing advertising offers.
- Conversion Import: Facilitates the import of conversion data from various sources for accurate tracking.
- Reports: Generates detailed reports on campaign performance, conversions, and affiliate earnings.
Follow these steps to get a local copy of the project up and running for development and testing purposes.
Ensure you have the following installed on your system:
-
Clone the repository:
git clone https://github.com/cpanova/cpa-network.git
-
Configure Environment Variables:
- Copy the example local settings file:
cp project/settings/local.dist.py project/settings/local.py
- Copy the example environment variables file:
cp .env.dist .env
- Copy the example local settings file:
-
Database schema and data
-
Migrations
docker-compose run --rm web ./docker/wait-for-postgres.sh "poetry run python manage.py migrate"
-
Load the countries into database
docker compose run --rm web poetry run python manage.py update_countries_plus
-
Create admin user
docker compose run --rm web poetry run python manage.py createsuperuser
-
-
Start the Development Environment:
docker compose up
-
Open Admin UI and Affilate UI
- Django Admin: http://127.0.0.1:8000/admin/login/
- Affiliate UI: http://127.0.0.1:8000/login/
We welcome contributions! Please take part in our short survey (5 questions, no email) to help us improve.
Distributed under the MIT License. See LICENSE
for more information.