Git Product home page Git Product logo

trip-management-system's Introduction

trip-management-system's People

Contributors

malivinayak avatar outdatedguy avatar patilprthm avatar

trip-management-system's Issues

Home Page UI

@outdated Guy Create Home Page UI first
It will be easy for me to test frontend with backend

Create API Route for Admin to get user information

Create API Route for Admin to search and get user information as per filter applied by admin
User info can be filtered by:

  1. Name {fname, mname, lname}
  2. Gender
  3. Birth Date Range
  4. Age Range
  5. Address {Area, City, State, Pincode}

Create frontend for driver dashboard

Get Available Trip

API Route: /api/trip/available

Get Available Trips is button which will show available trips as per driver's category

  • token

Accept trip

API route: /api/trip/accept

  • tripID
  • token

History

  • Get history button that will send user token to backend and display trip records(/api/trip/history/driver)
  • Delete all button that will send token to backend (/api/trip/delete/driver)

Wallet

  • Get current balance button that will send user token to backend (/api/cbs/get-balance/driver)
  • withdraw money form that will send amount and user token to backend (/api/cbs/withdraw-money)

Frontend UI for user registration

UI will be forms structured with 3 total forms:

  1. User Information form
  2. Address information form
  3. Login information form

User should be able to go back-and-forth between these forms

Create API route for trip booking

Book trip

API route: /api/trip/booking

  • startPlace
  • endPlace
  • startTime
  • ac - ac{1} or non-ac{0}
  • vehicleType - taxi{1} or private/rental{0}
  • token

Automate the merging on main branch

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

Driver registration fails

new registration for driver is failing because of not all field provided error even though all fields are provided

create more fields for start and end time in admin trip query

at startTrip time their must be two fields

  • D1 - from this date time to
  • D2 - that date time

same at endTrip time their must be two fields

  • D1 - from this date time to
  • D2 - that date time

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

  • startDateTime1
  • startDateTime2
  • endDateTime1
  • endDateTime2

Create admin dashboard to query database

Query fields:

User Query

API Route - "/api/query/user"

Required Fields
  • 1. fname
  • 2. mname
  • 3. lname
  • 4. gender
  • 5. ageR1
  • 6. ageR2
  • 7. area
  • 8. city
  • 9. state
  • 10. pincode
  • 11. birthDateR1
  • 12. birthDateR2

Driver Query

API Route - "/api/query/driver"

Required Fields
  • 1. fname
  • 2. mname
  • 3. lname
  • 4. gender
  • 5. ageR1 - minimum age
  • 6. ageR2 - maximum age
  • 7. area
  • 8. city
  • 9. state
  • 10. pincode
  • 11. earningR1 - minimum earning
  • 12. earningR2 - maximum earning
  • 13. expiryDateR1 - minimum license expiry date
  • 14. expiryDateR2 - maximum license expiry date
  • 15. ratingR1
  • 16. ratingR2
  • 17. birthDateR1
  • 18. birthDateR2

Trip Query

API Route - "/api/query/trip"

Required Fields
  • 1. place1 - Start Place
  • 2. place2 - End Place
  • 3. dateTime1 - Start Date, Time
  • 4. dateTime2 - End Time Date
  • 5. fareR1 - minimum trip fare
  • 6. fareR2 - maximum trip fare
  • 7. isAC - trip is ac or non-ac
  • 8. driverID - Driver ID / username of driver
  • 9. userID - User ID / username of user

custom query

API Route - "/api/query/custom"

  • 1. customQuery - direct query in string format without semicolon (if semicolon present then remove it)

**Note : ** Still working on trip query {Fields for trip query may or may not be change}

update trip accepting alert message

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,
});

Create API Route for Admin to get driver information

Create API Route for Admin to search and get user information as per filter applied by admin
User info can be filtered by:

  1. Name {fname, mname, lname}
  2. Gender
  3. Age Range
  4. Address {Area, City, State, Pincode}
  5. earning range
  6. Rating
  7. license exp date

Create CBS API routes

All CBS related routes should be made under /api/cbs.

Current required routes:

  1. - /api/cbs/get-balance/:role to get current balance in wallet
  2. - /api/cbs/add-money for users to add money to wallet

More routes:

  1. - /api/cbs/withdraw-money for driver/employees to remove money from wallet

Create Rating tab in user profile

@OutdatedGuy create Rating tab for user profile same as wallet tab
input required

  1. Get Trip (Button): To show all trip eligible for Rating
  2. form data : trip ID, rating out of 5, description if any

API Route: I will provide later

Create frontend for user dashboard

Book trip

API route: /api/trip/booking

  • pickup_place startPlace
  • drop_place endPlace
  • start_dateTime startTime
  • isAc ac - ac{1} or non-ac{0}
  • vehicleType - rental{0} or taxi{1}
  • token

History

  • Get history button that will send user token to backend (/api/trip/history/user)
  • Delete all button that will send token to backend (/api/trip/delete/user)

Wallet

  • Get current balance button that will send user token to backend (/api/cbs/get-balance/user)
  • Add money form that will send amount and user token to backend (/api/cbs/add-money)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.