Skip to content

3kori/Moti

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚗 Car Booking Website (Moti)

Status: Archived — Not Actively Maintained
Part of my course work


📖 Overview

The Car Booking Website is a full-stack web application developed as part of a university project. It allows users to browse, book, and pay for car rentals online through secure payment integrations.

The system supports both Stripe and M-Pesa Daraja API for payment processing, providing flexibility for international and local users.


🛠️ Tech Stack

Layer Technology
Frontend HTML, CSS, JavaScript
Backend PHP (Procedural / OOP)
Database MySQL
Server Environment XAMPP (Apache + MySQL + PHP)
Payment Integration M-Pesa Daraja API, Stripe API

🚀 Features

  • 🔐 User Authentication: Sign-up, Login, and Logout system
  • 🚘 Car Listings: Display cars with details (model, rate, availability)
  • 📅 Booking System: Users can book cars for selected dates and durations
  • 💳 Secure Payments:
    • M-Pesa Daraja API integration for local mobile payments
    • Stripe API integration for international card payments
  • 🧾 Booking Management: Users can view and manage their booking history
  • 🧑‍💻 Admin Panel: Add, edit, or remove car listings and manage users
  • 📱 Responsive Design: Works on both mobile and desktop screens

⚙️ Installation & Setup

1. Clone the Repository

git clone https://github.com/yourusername/Moti.git

2. Move Files to XAMPP Directory

Place the project folder inside:

C:\xampp\htdocs\

3. Create Database

  • Start XAMPP (Apache + MySQL)
  • Go to phpMyAdmin
  • Create a new database (carrental)
  • Import the SQL file provided in:
/db name/carrental.sql

4. Configure Database Connection

Open config.php and set your credentials:

define('DB_HOST','localhost');
define('DB_USER','root');
define('DB_PASS','');
define('DB_NAME','carrental');

5. Set Up API Keys

You’ll need to obtain your API credentials from the respective developer platforms before running the payment integrations.

Note: For local testing of M-Pesa Daraja, you may need to use sandbox credentials and Ngrok to expose callback URLs.

6. Run the Application

Open your browser and visit:

http://localhost/Moti/

💡 Key Learnings

Working with PHP & MySQL to create dynamic web apps

Implementing payment gateways (M-Pesa Daraja & Stripe)

Designing and validating booking systems

Building a responsive and user-friendly interface

Understanding session handling, database queries, and API integration

⚠️ Disclaimer

This project was created for educational purposes and is no longer maintained. Security practices and dependencies may be outdated. Use for reference or learning only.

👤 Author

Erick Wambua

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors