Initial checkin

This commit is contained in:
2023-05-18 18:21:00 -04:00
commit 1c64f16aef
21 changed files with 1020 additions and 0 deletions

28
README.md Normal file
View File

@@ -0,0 +1,28 @@
### 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`