View Code? Open in Web Editor
NEW
Trip Management System with Advance Database functionalities
CSS 4.07%
JavaScript 46.87%
HTML 49.06%
trip-management-system's Introduction
trip-management-system's People
trip-management-system's Issues
Create a Session-end API Route
create and update all API routes in index .html
@outdated Guy Create Home Page UI first
It will be easy for me to test frontend with backend
Session-storage
printing req.body
Create a API Route for Login with following Roles
admin
user
driver
PR #17
Create API Route for Admin to search and get user information as per filter applied by admin
User info can be filtered by:
Name {fname, mname, lname}
Gender
Birth Date Range
Age Range
Address {Area, City, State, Pincode}
Retrieve Trip Information based on following filters:
Start Place, End Place
Start Time, Date and End Time Date
Fare Range
AC / Non-AC
Driver ID / username of driver
User ID / username of user
Upload documentation files as follows
Project Discussion
@OutdatedGuy @pratham1402 If you have any suggestions doubts or anything else then use this issue as a discussion window
Before Commenting here please go through Project.md File
Get Available Trip
API Route: /api/trip/available
Get Available Trips is button which will show available trips as per driver's category
Accept trip
API route: /api/trip/accept
History
Wallet
Refer #72
API Routes used:
Get trips eligible for rating: /api/trip/rateable
Rate trip: /api/trip/rate
const fare = ( vehicleType === "0" ? 30 : 20 ) + ( ac === "1" ? 10 : 0 )
UI will be forms structured with 3 total forms:
User Information form
Address information form
Login information form
User should be able to go back-and-forth between these forms
Book trip
API route: /api/trip/booking
As for each PR one Review is mandatory
and after successful approval PR can be merged before any new changes
If new changes made then it must again need a review
Task - So, Implement a workflow which can automate the merging after One successful review and approval
Reference Link - Click Here
Add birthdate range in for user and driver search query
Added following fields for req.body in both user and driver access
birthDateR1
birthDateR2
Create following API Route
new registration for driver is failing because of not all field provided error even though all fields are provided
Path to import the admin query route model is wrong
at startTrip time their must be two fields
same at endTrip time their must be two fields
issue - no one knows exact start and end time with seconds so admin can't apply filter on it
I am taking 4 fields from req.body
Query fields:
User Query
API Route - "/api/query/user"
Required Fields
Driver Query
API Route - "/api/query/driver"
Required Fields
Trip Query
API Route - "/api/query/trip"
Required Fields
custom query
API Route - "/api/query/custom"
**Note : ** Still working on trip query {Fields for trip query may or may not be change}
set the alert message to result.message so that the message I am sending will be displayed on UI
if ( result . code === 200 ) {
console . log ( result . message ) ;
document . querySelector ( "#acceptTripForm" ) . reset ( ) ;
}
message which I am send is
return res . send ( {
message : "๐ Trip Booked Accepted Successful...\nTrip fare added to your account" ,
status : "success" ,
code : 200 ,
} ) ;
Creating a final detailed report to give a clear understanding of the overall project
Create API Route for Admin to search and get user information as per filter applied by admin
User info can be filtered by:
Name {fname, mname, lname}
Gender
Age Range
Address {Area, City, State, Pincode}
earning range
Rating
license exp date
I get this data in driver tab
and after switching to user/trip query tab this data must be automatically clear as now we are in user/trip tab
issue: admin may fill any name either first name lastn ame middle name or full name, it is quite challenging to develop such query in less time.
solution: So just replace it with userid and driverid
NOTE: Don't change variable name of passing data. keep it same as userNname and driverName
Create API Route for Driver Registration
@OutdatedGuy create Rating tab for user profile same as wallet tab
input required
Get Trip (Button): To show all trip eligible for Rating
form data : trip ID, rating out of 5, description if any
API Route: I will provide later
API Route - "/api/query/custom"
customQuery - direct query in string format without semicolon (if semicolon present then remove it)
Book trip
API route: /api/trip/booking
History
Wallet