├── .gitignore ├── client ├── public │ ├── robots.txt │ ├── favicon.ico │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── index.html ├── src │ ├── components │ │ ├── Spinner.js │ │ └── DefaultLayout.js │ ├── setupTests.js │ ├── App.test.js │ ├── reportWebVitals.js │ ├── redux │ │ ├── reducers │ │ │ ├── alertsReducer.js │ │ │ ├── carsReducer.js │ │ │ └── bookingsReducer.js │ │ ├── store.js │ │ └── actions │ │ │ ├── bookingActions.js │ │ │ ├── userActions.js │ │ │ └── carsActions.js │ ├── index.js │ ├── App.css │ ├── App.js │ ├── pages │ │ ├── UserBookings.js │ │ ├── AddCar.js │ │ ├── Login.js │ │ ├── Register.js │ │ ├── EditCar.js │ │ ├── AdminHome.js │ │ ├── Home.js │ │ └── BookingCar.js │ ├── logo.svg │ └── index.css ├── .gitignore ├── package.json └── README.md ├── models ├── userModel.js ├── carModel.js └── bookingModel.js ├── db.js ├── package.json ├── server.js └── routes ├── usersRoute.js ├── carsRoute.js └── bookingsRoute.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /client/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /client/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sathyaprakash195/sheycars-udemy/HEAD/client/public/favicon.ico -------------------------------------------------------------------------------- /client/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sathyaprakash195/sheycars-udemy/HEAD/client/public/logo192.png -------------------------------------------------------------------------------- /client/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sathyaprakash195/sheycars-udemy/HEAD/client/public/logo512.png -------------------------------------------------------------------------------- /client/src/components/Spinner.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import {Spin} from 'antd' 3 | function Spinner() { 4 | return ( 5 |
Desinged and Developed By
63 | 64 | 65 | 66 |SHEY
67 | 68 |{booking.car.name}
29 |Total hours : {booking.totalHours}
30 |Rent per hour : {booking.car.rentPerHour}
31 |Total amount : {booking.totalAmount}
32 | 33 | 34 |Transaction Id : {booking.transactionId}
36 |From: {booking.bookedTimeSlots.from}
37 |To: {booking.bookedTimeSlots.to}
38 |Date of booking: {moment(booking.createdAt).format('MMM DD yyyy')}
39 | 40 | 41 |{car.name}
51 |Rent Per Hour {car.rentPerHour} /-
52 |{car.name}
96 |Rent Per Hour {car.rentPerHour} /-
97 |{car.name}
85 |{car.rentPerHour} Rent Per hour /-
86 |Fuel Type : {car.fuelType}
87 |Max Persons : {car.capacity}
88 |110 | Total Hours : {totalHours} 111 |
112 |113 | Rent Per Hour : {car.rentPerHour} 114 |
115 |