8000 GitHub - abdul-nishar/VroomRent
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

abdul-nishar/VroomRent

Repository files navigation

VroomRent

VroomRent is an API designed to manage car rental services. It provides endpoints for handling various operations such as booking rentals, managing cars, and handling user profiles. This project is built using Node.js and Express, with MongoDB as the database.

Features

  • User Authentication: Secure user login and registration using JWT.
  • Car Management: Add, update, delete, and view cars available for rent.
  • Booking System: Users can book cars for specific dates.
  • Admin Panel: Admin users can manage cars and view all bookings.

Installation

  1. Clone the repository:
    git clone https://github.com/abdul-nishar/VroomRent.git
  2. Navigate to the project directory:
    cd VroomRent
  3. Install dependencies:
    npm install
  4. Set up environment variables:
    • Create a .env file in the root directory.
    • Add the following variables:
      PORT=5000
      MONGO_URI=your_mongodb_uri
      JWT_SECRET=your_jwt_secret
  5. Start the server:
    npm start

Usage

  • The API documentation is available here.
  • The server runs on http://localhost:5000 by default.

Endpoints

User Endpoints

  • POST /api/users/register: Register a new user.
  • POST /api/users/login: Log in a user.

Car Endpoints

  • GET /api/cars: View all available cars.
  • POST /api/cars: Add a new car (Admin only).

Booking Endpoints

  • POST /api/bookings: Book a car.
  • GET /api/bookings/user: View a user's bookings.

Contributing

Feel free to fork this repository and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0