Skip to content
forked from org-quicko/cliq

Self-hosted affiliate software for startups

Notifications You must be signed in to change notification settings

nityam2002/cliq

 
 

Repository files navigation

Cliq 🚀

Cliq is a self-hosted affiliate software solution designed for startups. It enables organizations to manage, track, and optimize their affiliate and promoter programs with ease. The platform provides robust APIs, a modern promoter portal, and is built with scalability and maintainability in mind.

Table of Contents 📚

Features ✨

  • Affiliate and promoter management
  • Referral tracking and commission calculation
  • Detailed reporting and analytics
  • Secure authentication and authorization
  • Responsive, modern UI for promoters
  • Extensible API for integrations

Tech Stack 🛠️

Backend (API) ⚙️

  • Framework: NestJS (Node.js)
  • Language: TypeScript
  • Database: (Configurable, typically PostgreSQL)
  • ORM: TypeORM or Prisma (as configured)
  • API Documentation: OpenAPI (Swagger)
  • Authentication: JWT, Role-based access control

Frontend (Promoter Portal) 💻

  • Framework: Angular
  • Language: TypeScript
  • UI Library: Angular Material
  • Styling: Tailwind CSS, SCSS (custom themes and overrides)
  • State Management: Angular Signals, RxJS
  • Build Tooling: Angular CLI

Common 🌐

  • Monorepo Management: Custom folder structure
  • Containerization: Docker, Docker Compose
  • Linting & Formatting: ESLint, Prettier

Project Structure 🗂️

.  
├── api/                # NestJS backend API
├── frontend/
│   ├── projects/
│   │   └── promoter-portal/   # Angular frontend for promoters
│   └── ...            # Frontend configuration and shared resources
├── lib/
│   └── ...            # Client and core packages
├── resources/         # Static resources
├── docker-compose.*.yml
├── Dockerfile
└── README.md

Resources 📦

The resources/ directory contains supporting assets for the platform, including:

  • Excel templates and data for schema generation
  • Postman collection

These resources help with development, testing, and integration workflows.

Getting Started 🏁

Prerequisites 📦

  • Node.js (v18+ recommended)
  • npm or yarn
  • Docker (for containerized deployment)
  • PostgreSQL (or your configured database)
  • Redis (for caching, queues, and background jobs)

Backend (API) ⚙️

  1. Navigate to the api/ directory.
  2. Copy .env.example to .env and configure your environment variables.
  3. Install dependencies:
    npm install
  4. Run the development server:
    npm run start:dev

Frontend (Promoter Portal) 💻

  1. Navigate to frontend/.
  2. Copy .env.example to .env if required and configure.
  3. Install dependencies:
    npm install
  4. Run the promoter portal development server:
    npm run start:promoter-portal

Docker 🐳

To run the entire stack using Docker Compose:

docker-compose -f docker-compose.yml up --build

Contributing 🤝

Contributions are welcome! Please open issues or submit pull requests for improvements and bug fixes.

Authors

About

Self-hosted affiliate software for startups

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 85.7%
  • HTML 10.1%
  • SCSS 1.6%
  • PLpgSQL 1.3%
  • JavaScript 0.9%
  • CSS 0.2%
  • Other 0.2%