Skip to content

tigmansh/gullible-interest-3767

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 

Repository files navigation

gullible-interest-3767

Screenshot_20230222_225643

Introduction

  • This is a car rental website that allows users to register, login and book cars. The website has a user-friendly interface that makes it easy to navigate and use. Users can access their dashboards where they can view, edit or delete their bookings. There is also an admin portal that allows the admin to manage the website.

Features

  • User registration and login
  • User dashboard to view, edit and delete bookings
  • Admin portal to manage the website
  • Admin can view registered users on the website
  • Admin can view bookings data of the website

Technology Stack

  • HTML, CSS and JavaScript for frontend development
  • Node.js and MongoDB for backend development

Getting Started

  • Clone the repository to your local machine
  • Configure the database connection details in the config.js file located in the config folder
  • Open the index.html file in your web browser to access the website

How to Use

  • Register as a user on the website
  • Login using your registered credentials
  • Browse available cars and make a booking
  • View, edit or delete your bookings from your dashboard
  • Admin can login to the admin portal to manage the website

Note: The backend is already deployed, so there is no need to install Node.js on your machine. You only need to configure the database connection details and open the index.html file in your web browser to access the website.

API Endpoints The following API endpoints are available for this project:

Authentication Endpoints

  • POST /api/login: User login
  • POST /api/register: User registration

User Endpoints

  • GET /api/user/:id: Get user details by ID
  • PATCH /api/user/:id: Update user details by ID
  • DELETE /api/user/:id: Delete user by ID

Booking Endpoints

  • GET /api/booking/user/:userId: Get all bookings of a user by user ID
  • GET /api/booking/:id: Get booking details by ID
  • POST /api/booking: Create a new booking
  • PUT /api/booking/:id: Update booking details by ID
  • DELETE /api/booking/:id: Delete booking by ID

Admin Endpoints

  • GET /api/admin/users: Get all users
  • GET /api/admin/bookings: Get all bookings

Note: The authentication endpoints do not require a token, while the other endpoints require a valid token for access. The token is generated upon successful login and must be included in the Authorization header of each request.

Landing Page With Sticky Navbar And Mega Menu Bar

Screenshot_20230227_112721

Footer

Screenshot_20230227_112741

Sign-up Page

Screenshot_20230227_112758

User Login Page

Screenshot_20230227_112821

Admin Login Page With Sound Alerts

Screenshot_20230227_112906

User's Data on Admin Dash-Board

Screenshot_20230227_112919

Booking's Data on Admin Dash-Board

Screenshot_20230227_112954