- Install Python3 - https://www.python.org/downloads/
- Download pip (Google instructions per OS)
python3 -m venv venv
to create a virtual environment. This is used to manage Python dependencies within just the context of your terminal instance.source venv/bin/activate
to start your virtual environmentpip install -r requirements.txt
to install all project dependenciesFLASK_ENV=development flask run --no-reload
to run the server in your terminal. The server will live update as you make code changes.- If the above command does not work, try:
python3 wsgi.py
The project has been designed to follow the pattern of dependency injection. Each layer has its dependencies injected in the app.py
file to limit coupling between components.
Using the APIs below, routines can be manually test run, and sensor values can be manually set to test the state machine.