2019-09-20 14:55:11 +02:00
|
|
|
# Rube Goldberg repo
|
|
|
|
|
|
|
|
## The server
|
|
|
|
|
|
|
|
The server is there to show the progress of a current run and all previous runs.
|
|
|
|
|
|
|
|
### Requirements
|
|
|
|
|
|
|
|
- python
|
|
|
|
- pip
|
|
|
|
|
|
|
|
### How do you run this?
|
|
|
|
|
2019-09-20 14:56:20 +02:00
|
|
|
Go into the correct directory with the code
|
|
|
|
|
|
|
|
cd watcher
|
|
|
|
|
2019-09-20 14:55:11 +02:00
|
|
|
Create a venv with the correct packages
|
|
|
|
|
|
|
|
python3 -m venv venv
|
|
|
|
|
|
|
|
Activate the virtual environment
|
|
|
|
|
|
|
|
source venv/bin/activate
|
|
|
|
|
|
|
|
Install the requirements
|
|
|
|
|
|
|
|
pip install -r requirements.txt
|
|
|
|
|
|
|
|
Start the server!
|
|
|
|
|
|
|
|
python app.py
|
|
|
|
|
2019-09-20 15:05:48 +02:00
|
|
|
Go enjoy the dashboard @ *localhost:5000*
|
2019-09-20 14:55:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
## The client
|
|
|
|
|
|
|
|
This is an example client and will also be used as first link in the machine.
|
2019-09-27 15:28:30 +02:00
|
|
|
|
|
|
|
### Requirements
|
|
|
|
|
|
|
|
A local http file server of some kind.
|
|
|
|
for ex the python http server.
|
|
|
|
|
|
|
|
### Running
|
|
|
|
|
|
|
|
Go into the correct directory with the code
|
|
|
|
|
|
|
|
cd watcher
|
|
|
|
|
|
|
|
with python's http server
|
|
|
|
|
|
|
|
python -m http.server
|