{"id":23177227,"url":"https://github.com/nexusgksoftwares/affiliate","last_synced_at":"2026-01-28T04:06:25.521Z","repository":{"id":263565053,"uuid":"890565317","full_name":"NexusGKSoftwares/affiliate","owner":"NexusGKSoftwares","description":"Ecolab Online Marketing SystemBackend: PHP (Laravel or core PHP) Database: MySQL Frontend: HTML, CSS, JavaScript (Bootstrap for responsiveness) APIs: REST APIs for communication between frontend and backend.","archived":false,"fork":false,"pushed_at":"2024-11-19T09:14:11.000Z","size":47,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T06:41:25.384Z","etag":null,"topics":["api","css","css3","ecommerce","ecommerce-application","ecommerce-website","html","html5","js","json","marketing","marketplace","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NexusGKSoftwares.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-18T19:44:39.000Z","updated_at":"2024-12-11T13:12:19.000Z","dependencies_parsed_at":"2024-11-19T08:43:36.925Z","dependency_job_id":"70bd0e78-38c7-4e43-a8ae-d837919b9fb7","html_url":"https://github.com/NexusGKSoftwares/affiliate","commit_stats":null,"previous_names":["nexusgksoftwares/affiliate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NexusGKSoftwares%2Faffiliate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NexusGKSoftwares%2Faffiliate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NexusGKSoftwares%2Faffiliate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NexusGKSoftwares%2Faffiliate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NexusGKSoftwares","download_url":"https://codeload.github.com/NexusGKSoftwares/affiliate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253929040,"owners_count":21985795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","css","css3","ecommerce","ecommerce-application","ecommerce-website","html","html5","js","json","marketing","marketplace","php"],"created_at":"2024-12-18T06:32:10.937Z","updated_at":"2026-01-28T04:06:25.465Z","avatar_url":"https://github.com/NexusGKSoftwares.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"**affiliate marketing system**\n---\n\n## **Expanded System Features**\n\n### **User Features**\n1. **Dashboard:**\n   - Displays:\n     - Total deposited money.\n     - Total withdrawn money.\n     - Current account balance.\n   - Transaction summary (e.g., money spent on trivia games or products).\n\n2. **Trivia Questions:**\n   - Play quizzes to earn points or rewards.\n   - Earn money through achievements or challenges.\n\n3. **Transaction History:**\n   - List all financial transactions (deposits, withdrawals, trivia-related payouts).\n\n4. **Job Postings and Applications:**\n   - Browse job postings.\n   - Apply for jobs.\n   - Post job advertisements (admin).\n\n5. **Leaderboards and Rewards:**\n   - Display top players based on trivia points or financial contributions.\n   - Allow users to redeem points for rewards or withdraw equivalent money.\n\n6. **Account Management:**\n   - Profile page with account details.\n   - Options to deposit/withdraw money.\n\n---\n\n### **Admin Features**\n1. **Dashboard:**\n   - Overview of system performance.\n   - Total deposits, withdrawals, and system balance.\n   - Active users and system engagement statistics.\n\n2. **Trivia Management:**\n   - Add, edit, or delete trivia questions.\n   - Set difficulty levels and rewards.\n\n3. **User Management:**\n   - Approve or block users.\n   - View user activities and transactions.\n\n4. **Job Management:**\n   - Review job postings.\n   - Manage job categories.\n\n5. **System Logs:**\n   - Monitor user activities.\n   - View transaction histories for all users.\n\n---\n\n### **Technical Stack**\n- **Backend:** PHP (Laravel or core PHP)\n- **Database:** MySQL\n- **Frontend:** HTML, CSS, JavaScript (Bootstrap for responsiveness)\n- **APIs:** REST APIs for communication between frontend and backend.\n\n---\n\n### **Database Structure**\n\n#### **Users**\n| Field            | Type         | Description                  |\n|------------------|--------------|------------------------------|\n| id               | INT          | Primary key                  |\n| name             | VARCHAR(255) | User's name                  |\n| email            | VARCHAR(255) | User's email                 |\n| password         | VARCHAR(255) | Hashed password              |\n| balance          | DECIMAL(10,2)| Account balance              |\n| created_at       | TIMESTAMP    | Registration date            |\n\n#### **Transactions**\n| Field            | Type         | Description                  |\n|------------------|--------------|------------------------------|\n| id               | INT          | Primary key                  |\n| user_id          | INT          | Foreign key to Users table   |\n| amount           | DECIMAL(10,2)| Transaction amount           |\n| type             | ENUM         | 'deposit', 'withdrawal'      |\n| created_at       | TIMESTAMP    | Transaction timestamp        |\n\n#### **TriviaQuestions**\n| Field            | Type         | Description                  |\n|------------------|--------------|------------------------------|\n| id               | INT          | Primary key                  |\n| question         | TEXT         | Trivia question              |\n| options          | TEXT         | JSON string for options      |\n| correct_option   | VARCHAR(255) | Correct answer               |\n| reward           | DECIMAL(10,2)| Reward amount for correct answer |\n| created_at       | TIMESTAMP    | Question creation date       |\n\n#### **Jobs**\n| Field            | Type         | Description                  |\n|------------------|--------------|------------------------------|\n| id               | INT          | Primary key                  |\n| title            | VARCHAR(255) | Job title                    |\n| description      | TEXT         | Job details                  |\n| salary           | DECIMAL(10,2)| Job salary                   |\n| posted_by        | INT          | Foreign key to Users table   |\n| created_at       | TIMESTAMP    | Job posting date             |\n\n---\n\n### **Project Structure**\n\n#### **Frontend (HTML + CSS + JS)**\n```\nonline_marketing_system/\n├── public/\n│   ├── index.html         // Landing page\n│   ├── dashboard.html     // Dashboard page\n│   ├── trivia.html        // Trivia game page\n│   ├── jobs.html          // Jobs page\n│   ├── transactions.html  // Transaction history page\n│   ├── assets/\n│       ├── css/\n│       ├── js/\n│       ├── images/\n```\n\n#### **Backend (PHP + MySQL)**\n```\nbackend/\n├── api/\n│   ├── user.php           // Handles user-related APIs\n│   ├── transactions.php   // Handles transaction APIs\n│   ├── trivia.php         // Handles trivia APIs\n│   ├── jobs.php           // Handles job APIs\n├── controllers/\n│   ├── UserController.php\n│   ├── TransactionController.php\n│   ├── TriviaController.php\n│   ├── JobController.php\n├── models/\n│   ├── User.php\n│   ├── Transaction.php\n│   ├── TriviaQuestion.php\n│   ├── Job.php\n├── config/\n│   ├── database.php       // Database connection\n│   ├── constants.php      // Global constants\n```\n\n---\n\n### **Dashboard Design**\n\n#### **Financial Overview**\n- **Deposits:** Total deposits made by the user.\n- **Withdrawals:** Total withdrawn by the user.\n- **Balance:** Current balance in the account.\n\n#### **Transaction History**\n- Table view:\n  - Transaction ID\n  - Date\n  - Type (Deposit/Withdrawal)\n  - Amount\n\n#### **Jobs Overview**\n- List of recently posted jobs with links to view details.\n\n---\n\n### **Development Plan**\n1. **Setup Environment:**\n   - Install PHP and MySQL.\n   - Create database and tables.\n\n2. **Develop Backend APIs:**\n   - User authentication and registration.\n   - Deposit, withdrawal, and balance calculation logic.\n   - Trivia functionality (randomized questions, rewards).\n   - Job posting and application APIs.\n\n3. **Frontend Implementation:**\n   - Build responsive UI with Bootstrap.\n   - Integrate AJAX for real-time data fetching.\n   - Create forms for trivia answers, deposits, withdrawals, and job applications.\n\n4. **Testing:**\n   - Test APIs with Postman.\n   - Test frontend interactions with dummy data.\n\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexusgksoftwares%2Faffiliate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnexusgksoftwares%2Faffiliate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexusgksoftwares%2Faffiliate/lists"}