ZEAL WebApp - Project Layout Structure

📁 zeal-webapp/
├── 📁 assets/
│   ├── 📁 css/
│   │   ├── style.css
│   │   └── responsive.css
│   ├── 📁 js/
│   │   ├── main.js
│   │   ├── auth.js
│   │   └── dashboard.js
│   └── 📁 images/
│       ├── logo/
│       └── icons/
│
├── 📁 config/
│   ├── database.php
│   ├── constants.php
│   └── config.php
│
├── 📁 includes/
│   ├── header.php
│   ├── footer.php
│   ├── navigation.php
│   └── sidebar.php
│
├── 📁 classes/
│   ├── Database.php
│   ├── User.php
│   ├── Pin.php
│   ├── Genealogy.php
│   ├── Earnings.php
│   ├── Support.php
│   └── Product.php
│
├── 📁 admin/
│   ├── index.php
│   ├── dashboard.php
│   ├── customers.php
│   ├── pins/
│   │   ├── generate.php
│   │   ├── transfer.php
│   │   └── activate.php
│   ├── reports/
│   │   ├── customers.php
│   │   ├── earnings.php
│   │   └── withdrawals.php
│   └── support/
│       ├── tickets.php
│       └── chat.php
│
├── 📁 user/
│   ├── dashboard.php
│   ├── profile.php
│   ├── pins/
│   │   ├── manage.php
│   │   └── transfer.php
│   ├── genealogy.php
│   ├── earnings.php
│   └── support.php
│
├── 📁 api/
│   ├── auth/
│   │   ├── login.php
│   │   ├── register.php
│   │   └── reset-password.php
│   ├── pins/
│   ├── users/
│   ├── earnings/
│   └── support/
│
├── 📁 public/
│   ├── index.php
│   ├── about.php
│   ├── contact.php
│   ├── business-plan.php
│   └── policies/
│       ├── privacy.php
│       ├── terms.php
│       └── payment.php
│
├── 📁 utils/
│   ├── helpers.php
│   ├── validation.php
│   ├── security.php
│   └── notifications.php
│
├── .htaccess
├── index.php
└── README.md

Key Features of Layout:

1. Modular Structure
   - Separate directories for different components
   - Clear separation of concerns
   - Easy maintenance and scalability

2. Security Considerations
   - Sensitive files outside public access
   - Configuration files separated
   - .htaccess for security rules

3. Organization
   - Assets grouped by type
   - Logical separation of admin and user areas
   - API endpoints organized by feature
   - Reusable components in includes/

4. Development Workflow
   - Easy to locate files
   - Consistent naming conventions
   - Clear separation of frontend and backend code

5. Maintenance
   - Modular class structure
   - Centralized configuration
   - Organized utility functions 