Build an API that takes inputs of start and finish location both within the USA Return a map of the route along with optimal location to fuel up along the route -- optimal mostly means cost effective based on fuel prices Assume the vehicle has a maximum range of 500 miles so multiple fuel ups might need to be displayed on the route Also return the total money spent on fuel assuming the vehicle achieves 10 miles per gallon Use the attached file for a list of fuel prices Find a free API yourself for the map and routing
- Django 3.2.23
- Python 3.x
- SQLite3
git clone https://github.com/UsamaHaide0786/spotter_assessment.git
cd yourproject
- Python 3.x
- pip
- Virtual environment (optional but recommended)
-
Clone the repository:
git clone https://github.com/UsamaHaide0786/spotter_assessment.git cd yourproject
-
Set up a virtual environment:
python -m venv env source env/bin/activate # On Windows use `env\Scripts\activate`
-
Project setup:
pip install -r requirements.txt python manage.py makemigrations python manage.py migrate
-
Run Server:
python manage.py runserver
Access the application: Open your web browser and go to http://127.0.0.1:8000.
Live URL: