Initial checkin
This commit is contained in:
28
README.md
Normal file
28
README.md
Normal 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`
|
||||
Reference in New Issue
Block a user