Skip to content

Project Structure

Shaheer Ahmad edited this page Dec 17, 2025 · 1 revision

Project Structure πŸ“‚

Here is an overview of the key files and directories in the repository.

365connectcommunity.github.io/
β”œβ”€β”€ .github/                # GitHub Actions workflows (Deployment)
β”œβ”€β”€ _wiki/                  # This documentation!
β”œβ”€β”€ admin/                  # Admin-specific logic (legacy/deprecated, most moved to src/pages/admin)
β”œβ”€β”€ android/                # Native Android project (Capacitor)
β”œβ”€β”€ ios/                    # Native iOS project (Capacitor)
β”œβ”€β”€ public/                 # Static assets (images, favicon)
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/         # Reusable React components (Header, Footer, inputs)
β”‚   β”œβ”€β”€ data/               # Static JSON data files (e.g., courses.js)
β”‚   β”œβ”€β”€ pages/              # Main route components
β”‚   β”‚   β”œβ”€β”€ admin/          # Admin Dashboard pages (ProtectedRoute)
β”‚   β”‚   └── ...             # Public pages (Home, Events, etc.)
β”‚   β”œβ”€β”€ services/           # External service logic (Firebase config)
β”‚   β”œβ”€β”€ styles/             # Global CSS
β”‚   β”œβ”€β”€ App.jsx             # Main App component & Router definition
β”‚   └── main.jsx            # Entry point
β”œβ”€β”€ .env.example            # Template for environment variables
β”œβ”€β”€ capacitor.config.json   # Capacitor configuration
β”œβ”€β”€ package.json            # Dependencies and scripts
└── vite.config.js          # Vite build configuration

Key Directories Explained

  • src/pages: Contains the main "Views" of the application. Each file generally corresponds to a Route.
  • src/components: Smaller building blocks like Navbar, EventCard, etc.
  • src/services/firebase.js: Centralized Firebase initialization and exports (db, auth).
  • android/ & ios/: These are generated and synced by Capacitor. You rarely edit code here manually unless configuring native permissions (like Camera access).

Clone this wiki locally