Raspberry Pi based smart car dashboard
Tutorial codebase, to accompany my Python book
Make sure you have Python 3.x installed on your machine (use pyenv).
Install the dependencies with pipenv (making sure to include dev and pre-release packages):
pipenv install --dev --pre
Configure your environment:
pipenv shell && export PYTHONPATH="$PWD"
Run the tests:
pytest
Or with logging:
pytest -s
Or tests with coverage:
pytest --cov=./
Format the code with Black:
black $PWD
Navigate into the Pi-Car
directory:
cd Pi-Car
Configure your environment:
export FLASK_APP=Pi_Car.app
Then start Flask:
flask run