Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.05 KB

README.md

File metadata and controls

63 lines (43 loc) · 1.05 KB

Pi-Car

Raspberry Pi based smart car dashboard

Tutorial codebase, to accompany my Python book

Car dashboard example

Developing/Configuring Environment

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

Running the App

Navigate into the Pi-Car directory:

cd Pi-Car

Configure your environment:

export FLASK_APP=Pi_Car.app

Then start Flask:

flask run