The Car Sharing Website is a full-stack web application that allows users to share car journeys with others, reducing travel costs and promoting eco-friendly commute options. The project enables users to search for available rides, add trip details, and manage their rides efficiently.
- Users can search for rides by entering departure and destination locations.
- The system finds available trips within a 10-mile radius.
- Results display key details like:
- Driver’s name
- Profile picture
- Trip route and timing
- Users can add new trip details via a modal form.
- Data is submitted using AJAX to
add_trips.php, which stores it in MySQL. - Existing trips can be edited via another AJAX-powered modal.
- Ability to modify search radius.
- Future enhancement potential:
- Profile editing
- Trip booking system
- Ratings & reviews
- Ride preferences (e.g. music, pets, smoking)
| Technology | Purpose |
|---|---|
| HTML, CSS | Structure & styling |
| Bootstrap | Responsive UI |
| JavaScript | Frontend interactivity |
| jQuery & AJAX | Asynchronous communication |
| PHP | Backend logic |
| MySQL | Database |
| JSON | Data exchange format |
| Google Maps API | Route and location services |
- User inputs departure & destination → Google Maps API validates data
- Trip search query executes in database based on location radius
- Results fetched via AJAX and displayed dynamically
- Add/Edit trip using modal → handled by PHP scripts
- Database stores updated trip details
- Authentication system (login/signup)
- Advanced filters (price, time, car type)
- Real-time notifications
- Booking confirmation and ride chat system