This project is a fully responsive website designed for a transport service, where users can register as riders, book rides, and manage their ride history. The website allows new riders to sign up, existing riders to log in, and users to book rides by selecting available riders based on their location and vehicle availability.
The system is built using HTML, CSS, JavaScript, and connected to a free Oracle database to handle user registration, booking, and validation. The website includes multiple pages like "Become a Rider", "Book a Rider", "Login", and a "Rider Dashboard".
- Responsive Design: The website is fully responsive and works well on mobile devices.
- User Registration and Login: Users can sign up as riders by providing necessary details and log in to manage their bookings.
- Rider Dashboard: After logging in, riders can view their current and past orders, update their availability status, and manage their bookings.
- Booking System: Customers can book riders, view available vehicles in their area, and receive confirmation and booking details.
- Oracle Database Integration: All user and booking information is stored and validated using a free Oracle database.
- Frontend: HTML, CSS, JavaScript, Bootstrap
- Backend: Oracle Database (free local setup)
- Validation: JavaScript
- Animation: CSS for smooth animations
- Database Connectivity: PHP
project-folder/
│
├── /css
│ └── styles.css
├── /js
│ ├── validation_rider.js
│ ├── validation_booking.js
│ ├── map_integration.js
│ ├── counter.js
├── /assets
│ ├── images/
│ └── background.jpg
├── /pages
│ ├── index.html
│ ├── become_rider.html
│ ├── booking.html
│ ├── login.html
│ ├── dashboard_rider.html
│ ├── service.html
├── /database
│ ├── db_connect.php
└── README.md
- Introduces the service.
- Includes a navbar, carousel, and buttons for ride booking and rider registration.
- Footer and navigation bar are globally included across all pages.
- Riders fill out a form with their details.
- JavaScript validation ensures data integrity.
- Form disappears after submission, showing a success message.
- Rider details are stored in an Oracle database.
- Customers enter ride details.
- Available riders are automatically suggested.
- Successful bookings generate confirmation messages.
- Displays pending and completed bookings.
- Includes an availability toggle for riders.
- Displays service-related statistics using live data.
- Uses Google Maps API to display service areas.
- Fetches and updates real-time statistics from the Oracle database.
- Oracle Database 21Ai stores all user and booking data.
- Connected via PHP scripts running on the XAMPP Apache Server.
- Secure authentication and data validation are implemented.
Follow these steps to set up a free Oracle database:
-
Create an Oracle Cloud Account:
- Sign up for a free Oracle Cloud account here.
- After signing up, log in to the Oracle Cloud Dashboard.
-
Create a Free Database:
- In the Oracle Cloud dashboard, go to Autonomous Database and create a new instance. Choose the "Always Free" option.
- Note the database connection details such as
username,password,host, andport.
-
Connect to Database Locally:
- Install Oracle Instant Client on your local machine from Oracle's official site.
- Use PHP to connect to the Oracle database via the
oci_connectfunction.
Here’s an example of how to set up database connectivity using PHP:
// db_connect.php
<?php
$host = "your_host";
$port = "your_port";
$service_name = "your_service_name";
$username = "your_username";
$password = "your_password";
$connection_string = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=$host)(PORT=$port))(CONNECT_DATA=(SERVICE_NAME=$service_name)))";
$conn = oci_connect($username, $password, $connection_string);
if (!$conn) {
$error = oci_error();
die("Error connecting to Oracle Database: " . $error['message']);
} else {
echo "Connected to Oracle Database";
}
?>- Ensure all the HTML, CSS, JavaScript, and database connection files are saved in their respective directories.
- Open
become_rider.html,booking.html,login.html, anddashboard_rider.htmlin a web browser to check how they work. - Run your backend server (PHP on XAMPP) to connect the frontend to the Oracle database and test functionalities.
- Bootstrap Documentation: https://getbootstrap.com/docs/
- JavaScript Form Validation: https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation
- Google Maps API Documentation: https://developers.google.com/maps/documentation/javascript
- Oracle Database 23Ai: https://www.oracle.com/database/technologies/appdev.html
- XAMPP Apache Server: https://www.apachefriends.org/index.html
This project provides a structured approach to solving daily commuting issues while creating employment opportunities. With seamless UI/UX, robust database integration, and real-time updates, the platform ensures an efficient and user-friendly transport service.