Car Rental Reservation System Backend Live URL
- Introduction
- Features
- Technology Used
- Installation
- Usage
- API Endpoints
The Car Rental Reservation System Backend is a robust and scalable backend solution for managing car rental reservations. This project provides RESTful API services to handle car rentals, reservations, user management, and more. It is designed to be used with a frontend application but can also be tested independently using tools like Postman.
- π‘οΈ User authentication and authorization
- π CRUD operations for cars and reservations
- π Real-time booking availability
- πΎ Integration with MongoDB for data persistence
- π RESTful API design for easy integration
- Node.js: JavaScript runtime environment
- Express.js: Web application framework for Node.js
- MongoDB: NoSQL database for data storage
- Mongoose: ODM for MongoDB and Node.js
- JWT: JSON Web Tokens for secure authentication
- Bcrypt: Library for hashing passwords
- Zod: TypeScript-first schema validation
- TypeScript
Open your command prompt or terminal and run the following command to clone the repository:
- bash
- Copy code
- git clone https://github.com/Mehedihasan444/Car-Rental-Reservation-System-Backend.git
- cd Car-Rental-Reservation-System-Backend
- code .
- Press Ctrl + J to open the integrated terminal in Visual Studio Code.
Run the following command to install all the necessary dependencies:
- bash
- Copy code
- npm install
Start the development server with the following command:
- bash
- Copy code
- npm run start:dev
- The application should now be running on http://localhost:5000.
Once the server is running, you can use tools like Postman to interact with the API endpoints. Make sure to check the available routes and their required parameters in the API Endpoints section.
Here's a brief overview of the main API endpoints:
- POST /api/auth/signup
- POST /api/auth/signin
- POST /api/cars: Add a new car
- GET /api/cars: Get all cars
- GET /api/cars/:id : Get a car
- PUT /api/cars/:id : Update car details
- DELETE /api/cars/:id : Delete a car
- PUT /api/cars/return : return the car
- GET /api/bookings: Get all reservations
- POST /api/bookings: Create a new reservation
- GET /api/bookings/my-bookings : Get reservation details