← Documentation

Folder Structure

Directory layout and file descriptions

/home/test/
├── index.php                # Success landing page
├── PROJECT.md               # Project overview
├── CHANGELOG.md             # Change history
├── TODO.md                  # Pending tasks
├── MEMORY.md                # Conversation memory
├── manifest.json            # PWA manifest
├── sw.js                    # Service worker
├── includes/
│   ├── security.php         # Security headers + CSP
│   └── functions.php        # Shared utilities
├── assets/
│   ├── css/app.css          # Shared stylesheet (dark/light)
│   ├── js/app.js            # Theme toggle + SW registration
│   └── icons/               # PWA icons
├── api/
│   ├── index.php            # API router
│   ├── bootstrap.php        # API bootstrap
│   └── endpoints/           # API endpoint handlers
│       ├── health.php
│       ├── status.php
│       └── routes.php
├── help/                    # Public documentation
└── screenshots/             # QA screenshots

File Descriptions

includes/security.phpSets all security headers (CSP, HSTS, X-Frame-Options, etc.)
includes/functions.phpShared utilities: e(), json_response(), CSRF, rate limiting
assets/css/app.cssShared styles with CSS custom properties for dark/light mode
assets/js/app.jsTheme toggle, localStorage persistence, service worker registration
api/index.phpAPI router with method + path matching
api/bootstrap.phpIncludes security + functions for all API endpoints