Files
electric-vehicle-battery-ch…/README.md
2023-05-18 18:21:00 -04:00

28 lines
502 B
Markdown

### 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`