Skip to content

adavadkardhruv13/Car-Rental-Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

API for Car Rental System

Overview

This is a simple car rental system developed using Django and Django REST Framework. The system allows customers to view available cars, make reservations, and manage their bookings.

Features

  • View all available cars
  • View details of a specific car
  • Make a car reservation
  • View all reservations
  • View details of a specific reservation
  • Edit reservation details
  • Cancel a reservation

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/car-rental-git
  2. Navigate to the project directory:

    cd car-rental
  3. Create a virtual environment (optional but recommended):

    python -m venv venv
  4. Activate the virtual environment:

    • On Windows:

      venv\Scripts\activate
    • On macOS/Linux:

      source venv/bin/activate
  5. Install dependencies:

    pip install -r requirements.txt
  6. Run migrations:

    python manage.py migrate
  7. Create a superuser (for admin access):

    python manage.py createsuperuser
  8. Start the development server:

    python manage.py runserver
  9. Access the application at http://localhost:8000/

Usage

  • Access the API documentation at http://localhost:8000/ for detailed information on available endpoints and how to use them.

Contributing

If you'd like to contribute to this project, please follow the Contributing Guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages