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 clientintowith app.app_context()block intest/__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.
Languages
Python
100%