MicroJob Pro is a modern, responsive, mobile-first microtask, daily rewards, and tiered investment platform. Built with a responsive design philosophy, it features a complete user earning suite and a feature-rich admin control portal with real-time financial moderation, task building, and dynamic branding.
- Key Features
- System Architecture
- Technology Stack
- Project Directory Structure
- Getting Started
- Core Workflows & Mechanics
- Available Documentation
- Contributing
- License
-
Dynamic Community Feed (
/):- Public social posts, announcements, and payment proof showcases.
- Like, comment, and share capabilities with live counts.
- Daily Check-In streak widget with instant reward claiming.
- Promotional giveaway carousel banners.
-
MicroTask & Quiz Hub (
/earnings):- Interactive multi-category tasks: Quizzes with countdown timer, App Installations, YouTube video tasks, Surveys, and Link clicks.
- Automated answer verification and reward settlement into wallet balance.
- Plan-based daily earning limit enforcement.
-
Investment Plans (
/plan):- Tiered membership plans (e.g., Starter, Pro, VIP).
- Real-time plan purchasing with wallet balance validation.
- Plan duration and higher daily earning caps.
-
Digital Wallet & Payment Hub (
/wallet,/deposit,/withdraw):- Real-time balance and withdrawal history tracking.
- Deposit: Multi-gateway manual deposit submission with Transaction ID (TrxID), receipt upload, and gateway instructions.
- Withdraw: Flexible payout method selection, minimum withdrawal thresholds, and pending transaction tracking.
-
Split Referral Program (
/refer):- Dedicated referral link generator (
?ref=CODE) and single-click clipboard copy. - Native Web Share API integration for seamless mobile sharing.
- Dual-reward mechanism: Distinct Referrer Reward ($) and New User Welcome Bonus ($).
- Real-time referral earnings counter.
- Dedicated referral link generator (
-
Comprehensive Profile & Photo Customization (
/profile):- Multi-option Avatar Edit Modal: Upload local files (PNG/JPG/WEBP/GIF), choose from 16+ curated avatars, generate random avatars, or paste direct image links.
- Inline profile editor for Name, Email, Phone, and Bio.
- Direct password updates with client-side validation.
-
User Settings & Security (
/settings):- Language Selection: English, Bengali (বাΰ¦ΰ¦²ΰ¦Ύ), Hindi (ΰ€Ήΰ€Ώΰ€¨ΰ₯ΰ€¦ΰ₯), Arabic (Ψ§ΩΨΉΨ±Ψ¨ΩΨ©), and Spanish (EspaΓ±ol).
- Theme Engine: Seamless Light and Dark mode switching.
- Two-Factor Authentication (2FA): Authenticator setup secret key, QR mock preview, and 6-digit code activation.
- Notification Toggles: Push, Email, and Promotional alerts.
- Help Center (
/help): Interactive accordion FAQ, direct WhatsApp/Email support, and onboarding guide.
Access via /admin (Secure login at /admin/login):
- Executive Analytics Dashboard (
/admin): Total user count, active subscriptions, total deposits, total payouts, pending verification queue, and platform revenue. - User Moderation (
/admin/users): Search, filter by active/banned status, manual balance adjustment, account suspension/reactivation. - Split Referral Engine Config (
/admin/referrals): Configure custom dollar rewards for referrers vs. new signups, percentage commission on deposits, and tiered task earnings bonus. Includes live distribution preview. - Task & Job Creator (
/admin/tasks): Dynamic task builder with validation parameters (Timer duration, multiple-choice quiz questions, correct answer selection, custom payout reward). - Plan Subscriptions Manager (
/admin/plans): Create, edit, and delete investment tiers, adjust price, duration, and daily limits. - Financial Moderation Queue (
/admin/transactions,/admin/payments/*):- Review pending deposit and withdrawal slips with transaction proof inspection.
- Approve or reject transactions with one click, automatically updating user balances and dispatching system notifications.
- Payment Gateways Manager: Enable/disable manual payment methods (bKash, Nagad, USDT, PayPal, Bank Transfer).
- Giveaways & Daily Rewards (
/admin/marketing/*): Upload promotional banners, configure daily check-in base amounts, streak multipliers, and max streak limits. - Community Post Moderation (
/admin/posts): Approve, reject, or delete user-submitted posts. - Branding & Site Customization (
/admin/branding,/admin/settings): Dynamic site name, logo URL, favicon URL, primary brand color, and official support contacts (Email, Phone, WhatsApp, Telegram, Facebook).
βββββββββββββββββββββββββββββββ
β MicroJob Pro Client App β
β (React 19 + TypeScript) β
ββββββββββββββββ¬βββββββββββββββ
β
βββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββ
βΌ βΌ
ββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββ
β User Application Routes β β Admin Management Portal β
β - Home, Feed, Check-in β β - Dashboard & Analytics β
β - Tasks, Quizzes, Earning β β - User Moderation β
β - Plans, Wallet, Pay β β - Task & Plan Builder β
β - Refer, Profile, Settingsβ β - Financial Transaction Txβ
ββββββββββββββββ¬ββββββββββββββ β - Referral & Branding Cfg β
β βββββββββββββββ¬βββββββββββββββ
βββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββ
β Reactive Central AppContext β
β - State Synchronization β
β - Business Rules Validation β
β - Notification Dispatcher β
ββββββββββββββββββ¬βββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββ
β Browser Persistence Layer β
β (Local Storage + Memory Hydr) β
βββββββββββββββββββββββββββββββββββ
| Domain | Technology | Version / Specification |
|---|---|---|
| Core Framework | React | ^19.0.1 |
| Language | TypeScript | ~5.8.2 |
| Build Tooling | Vite | ^6.2.3 |
| Routing | React Router DOM | ^7.18.3 |
| Styling | Tailwind CSS | ^4.1.14 |
| Icons | Lucide React | ^0.546.0 |
| Animations | Motion (Framer Motion) | ^12.23.24 |
| Class Utilities | clsx, tailwind-merge |
Standard |
| Cloud/Edge Ready | Cloudflare Pages Functions | /functions/api/health.ts |
βββ .env.example # Environment variables template
βββ .gitignore # Git ignore specifications
βββ ARCHITECTURE.md # Deep-dive forensic architectural report
βββ ADMIN_GUIDE.md # Operational manual for administrator portal
βββ CONTRIBUTING.md # Contribution guidelines & code standards
βββ SECURITY.md # Security policy and data safety guidelines
βββ LICENSE # MIT License
βββ index.html # HTML5 entry point with responsive viewport
βββ package.json # NPM dependencies and build scripts
βββ tsconfig.json # TypeScript configuration
βββ vite.config.ts # Vite & Tailwind CSS configuration
βββ wrangler.toml # Cloudflare deployment manifest
β
βββ functions/ # Edge serverless functions
β βββ api/
β βββ health.ts # Cloudflare Pages health check endpoint
β
βββ public/ # Static assets, icons, manifest
β βββ favicon.ico
β βββ icon-192.png
β βββ manifest.json
β
βββ src/
βββ main.tsx # Application DOM mounting
βββ App.tsx # Root router and global branding coordinator
βββ index.css # Tailwind CSS v4 entry point
βββ types.ts # Unified TypeScript definitions and interfaces
βββ data.ts # Initial seeded mock data for users and plans
β
βββ components/ # Shared modular UI components
β βββ Layout.tsx # Mobile-first user layout with bottom navigation & drawer
β βββ AdminLayout.tsx # Enterprise admin sidebar layout
β βββ AvatarEditModal.tsx # Multi-option avatar selector and image uploader
β βββ FaqSection.tsx # Accordion FAQ component
β βββ OnboardingTutorial.tsx # Interactive user walkthrough guide
β
βββ context/
β βββ AppContext.tsx # Global reactive state provider & storage synchronization
β
βββ lib/
β βββ utils.ts # Class merging utility (`cn`)
β
βββ pages/ # Application Page Views
βββ Home.tsx # Community feed, daily check-in & quick actions
βββ Earnings.tsx # Interactive task list, quiz solver & rewards
βββ Plan.tsx # Subscription investment plans
βββ Wallet.tsx # Balance overview and transaction history
βββ Deposit.tsx # Manual deposit submission flow
βββ Withdraw.tsx # Withdrawal request flow
βββ Refer.tsx # Split referral reward dashboard
βββ Profile.tsx # Profile details, photo edit & stats
βββ UserSettings.tsx # Theme, language, 2FA & notification controls
βββ HelpCenter.tsx # Support hub and FAQ
βββ Notifications.tsx # User notification center
βββ Auth.tsx # Login & Registration with auto-referral detection
β
βββ admin/ # Administrator Views
βββ AdminLogin.tsx # Admin authentication screen
βββ AdminDashboard.tsx # Financial overview & KPIs
βββ AdminUsers.tsx # User list and balance editor
βββ AdminReferrals.tsx # Split referral reward manager
βββ AdminTasks.tsx # Task & quiz builder
βββ AdminPlans.tsx # Investment tier manager
βββ AdminTransactions.tsx # Unified transaction queue
βββ AdminPosts.tsx # Community post moderation
βββ AdminGiveaway.tsx # Promotional banner manager
βββ AdminDailyReward.tsx # Daily check-in streak config
βββ AdminBranding.tsx # Site name, logo & color themes
βββ AdminSettings.tsx # General site settings
βββ AdminNotificationSettings.tsx # Notification broadcast system
βββ payment/
βββ AdminGateways.tsx # Payment methods manager
βββ AdminDeposits.tsx # Deposit slip verification
βββ AdminWithdraws.tsx # Withdrawal approval queue
-
Clone the repository:
git clone https://github.com/your-username/microjob-pro.git cd microjob-pro -
Install project dependencies:
npm install
Copy the .env.example file to .env:
cp .env.example .env# Optional Gemini AI API Key for generative integrations
GEMINI_API_KEY=""
# Application Host URL
APP_URL="http://localhost:3000"npm run devThe application will be accessible at http://localhost:3000.
Compile the TypeScript files and generate production static assets:
npm run buildThe production bundle will be output to the dist/ directory.
- Users access tasks with specified rewards, time limits, and categories.
- For quizzes, users answer within the timer; correct answers credit the user's balance and log a
task_earningtransaction. - Daily earnings are bounded by the user's active subscription tier limit.
- Admins configure distinct reward values:
referrerBonusAmount($): Awarded to the inviting user upon referee registration.newUserBonusAmount($): Awarded to the new user immediately upon sign-up with a valid referral link/code.
- When registering via
/auth?ref=CODE, the platform validates the code, registers both transactions, and credits balances automatically.
- Users submit deposits with transaction IDs and proof receipts.
- Requests appear in the Admin Moderation Queue (
/admin/payments/deposits/pending). - On approval, the deposit amount is automatically credited to the user's wallet with an instant confirmation notification.
- Users can update their avatar using the modal:
- Direct local file upload (with automatic client-side Base64 conversion).
- One of 16+ curated avatars.
- DiceBear SVG avatar generator with randomized seeds.
- External image URL.
- The avatar updates instantly across all views (navigation header, sidebar drawer, feed posts, and comments).
- CLOUDFLARE_D1_R2_GUIDE.md: Complete guide for Cloudflare D1 Database, R2 Object Storage, and Pages Functions deployment.
- ARCHITECTURE.md: Forensic breakdown of data flow, state management, and schema design.
- ADMIN_GUIDE.md: Step-by-step administrator operations manual.
- CONTRIBUTING.md: Guidelines for contributing code and reporting issues.
- SECURITY.md: Security practices and vulnerability disclosure policy.
Contributions are welcome! Please review CONTRIBUTING.md for details on code formatting, branch naming, and pull request submissions.
This project is licensed under the MIT License - see the LICENSE file for details.