Mental Health Support Platform for Kenyans
# MindSpace Kenya - Mental Health Platform
A comprehensive mental health platform connecting Kenyans with licensed therapists for private, affordable, and culturally-relevant support.
## π Features
- **User Authentication**: Secure signup and login with email/phone
- **Smart Therapist Matching**: AI-powered matching based on user needs
- **Dashboard**: Track mood, appointments, and progress
- **Real-time Chat**: Message therapists directly
- **Responsive Design**: Works on all devices
- **Dark Mode**: Eye-friendly interface option
## π Project Structure
```
mindspace-kenya/
βββ index.html # Landing page
βββ login.html # Login page
βββ getstarted.html # Signup & assessment flow
βββ dashboard.html # User dashboard
βββ therapy.html # Therapy booking
βββ aiassistant.html # AI support
βββ community.html # Community forum
βββ css/
β βββ styles.css # Main stylesheet
βββ js/
β βββ app.js # Main application logic
β βββ auth.js # Authentication handler
βββ api/ # PHP Backend
βββ config.php # Database configuration
βββ signup.php # Registration endpoint
βββ login.php # Authentication endpoint
βββ logout.php # Logout endpoint
βββ database.sql # Database schema
```
## π οΈ Installation & Setup
### Prerequisites
- **Web Server**: Apache/Nginx
- **PHP**: Version 7.4 or higher
- **MySQL**: Version 5.7 or higher
- **Modern Browser**: Chrome, Firefox, Safari, or Edge
### Step 1: Database Setup
1. **Create the database:**
```bash
mysql -u root -p
```
2. **Run the SQL schema:**
```sql
source /path/to/database.sql
```
Or import via phpMyAdmin
3. **Verify tables were created:**
```sql
USE mindspace_kenya;
SHOW TABLES;
```
### Step 2: Configure Backend
1. **Edit `api/config.php`:**
```php
define('DB_HOST', 'localhost');
define('DB_USER', 'your_username'); // Change this
define('DB_PASS', 'your_password'); β¦