Skip to content

Latest commit

 

History

History
104 lines (67 loc) · 2.45 KB

README.md

File metadata and controls

104 lines (67 loc) · 2.45 KB

Delivery Management System

Description

A Django-based Delivery Management System that handles vehicle and issue management, including calculation of final prices based on vehicle issues.

Features

  • Manage vehicles and components
  • Track issues and their costs
  • Calculate the final price based on issues associated with a vehicle

Installation

Prerequisites

  • Python 3.12 or later
  • Django 5.1 or later

Steps to Set Up

  1. Clone the Repository:

    git clone https://github.com/jainkarun8/Delivery-Management-System.git
  2. Create a Virtual Environment:

    python -m venv venv
  3. Activate the Virtual Environment:

    • On Windows:

      venv\Scripts\activate
    • On macOS/Linux:

      source venv/bin/activate
  4. Install Dependencies:

    pip install -r requirements.txt
  5. Apply Migrations:

    python manage.py migrate
  6. Run the Development Server:

    python manage.py runserver
  7. Access the Application:

    Open your web browser and navigate to http://127.0.0.1:8000/ to view the application.

Usage

API Endpoints

  • Calculate Final Price

    • URL: /calculate-price/<vehicle_id>/
    • Method: GET

Admin Interface

You can access the Django admin interface at http://127.0.0.1:8000/admin/ to manage vehicles, components, and issues. In my case username asus password karun

Testing

Running Tests To ensure everything is working correctly, run the tests using the following command:

python manage.py test

Test Cases Test Vehicle Price Calculation: Validates the calculation of the total price based on issues associated with a vehicle. Test Issue Management: Ensures that issues can be created, updated, and associated with vehicles and components correctly.

Screenshots

Screenshot (684) Screenshot (685) Screenshot (686) Screenshot (687) Screenshot (688) Screenshot (689)