A web-based weather forecasting and clothing recommendation system that helps users make smarter daily decisions.
CommuRide integrates real-time weather data retrieval with a smart recommendation engine to provide users with:
- 🌦️ Real-time weather forecasts
- 📍 Location-based weather search
- 👕 Smart clothing suggestions based on weather conditions
By combining weather insights with practical outfit recommendations, CommuRide enhances user convenience and day-to-day planning.
- 🔍 Search weather by location — Look up any city or region instantly
- 🌡️ Current temperature and conditions — Live temperature, humidity, and sky conditions
- 👕 Clothing recommendations — Outfit suggestions tailored to the weather
- 📊 Simple, user-friendly interface — Clean layout designed for fast access
- ⚡ Real-time data updates — Always-fresh data pulled from live sources
| Layer | Technology |
|---|---|
| Frontend | HTML, CSS, JavaScript |
| Backend | PHP |
| Database | MySQL |
| Local Server | XAMPP (Apache + MySQL) |
git clone https://github.com/CommuRide/CommuRide.gitCopy the project folder into your XAMPP htdocs directory:
C:/xampp/htdocs/CommuRide
- Open phpMyAdmin (
http://localhost/phpmyadmin) - Create a new database named:
commuride_db - Import the provided
.sqlfile from/db/schema.sql
Edit /config/config.php with your local credentials:
$host = "localhost";
$user = "root";
$password = "";
$database = "commuride_db";- Start Apache and MySQL in XAMPP Control Panel
- Open your browser and navigate to:
http://localhost/CommuRide
🔍 User enters a location
↓
🌐 System fetches weather data from API
(temperature, condition, humidity, etc.)
↓
🌡️ Weather data is processed & categorized
(hot / cold / rainy / humid)
↓
👕 Clothing recommendation is generated
Hot → Light clothing
Rainy → Jacket / Umbrella
Cold → Layered clothing
↓
📊 Results displayed to the user
↓
🔁 User can search again for another location
- Passwords are hashed using PHP's
password_hash()withPASSWORD_DEFAULT - Session-based authentication enforced across all pages
- Role-based access restrictions for Admin, Manager, and User routes
CommuRide/
│
├── admin/
│ └── dashboard.php
│
├── auth/
│ ├── signout.php
│ └── verify-email.php
│
├── manager/
│ └── dashboard.php
│
├── user/
│ ├── dashboard.php
│ └── save-history.php
│
├── users/
│ ├── dashboard.php
│ ├── history.php
│ ├── user-create.php
│ ├── user-delete.php
│ ├── user-update.php
│ └── user-view.php
│
├── assets/
│ └── css/
│ ├── style.css
│ ├── admin.css
│ ├── history.css
│ ├── index.css
│ ├── user-create.css
│ ├── user-forms.css
│ └── user.css
│
├── config/
│ ├── config.php
│ └── functions.php
│
├── db/
│ └── schema.sql
│
├── includes/
│ └── activity-logger.php
│
├── tests/
│ ├── test-access.php
│ ├── test-login.php
│ └── test-mail.php
│
└── index.php ← Login page (entry point)
Contributions are welcome! Follow these steps:
- Fork the repository
- Create a feature branch
git checkout -b feature/your-feature-name
- Commit your changes
git commit -m "Add: your feature description" - Push to your branch
git push origin feature/your-feature-name
- Open a Pull Request
This project is intended for educational purposes and may be freely modified or reused.
CommuRide Team 🔗 GitHub: https://github.com/CommuRide