2023-05-18 18:21:00 -04:00
2023-05-18 18:21:00 -04:00
2023-05-18 18:21:00 -04:00
2023-05-18 18:21:00 -04:00
2023-05-18 18:21:00 -04:00
2023-05-18 18:21:00 -04:00

Install

pip install -r requirements.txt

reset db

FLASK_APP=app.py FLASK_ENV=development flask reset-db

create vehicles

FLASK_APP=app.py FLASK_ENV=development flask create-vehicles

run

FLASK_APP=app.py FLASK_ENV=development flask run

get list of vehicles

http://127.0.0.1:5000/vehicles

Tests

pytest

Notes for running with python 3.11

  • Updated py to 1.11.0
  • Updated pytest to 6.2.5
  • Moved yield client into with app.app_context() block in test/__init__.py
Description
API for changing electric car batteries. Includes automatic route planning based on location of vehicles to reduce the total amount of distance travelled.
Readme 45 KiB
Languages
Python 100%