Skip to content
This repository has been archived by the owner on Oct 18, 2019. It is now read-only.

Web app (Flask server)

Joao Maio edited this page Mar 14, 2019 · 5 revisions

The Flask server will serve as a web app, basically an interface between a user with a device and the robot (Pi + EV3).

(This is also documented in the user guide section)

To set up, ideally use python 3.7 (should work on others too), set up a virtual environment, and install requirements.txt.

$ cd flask_app  # enter the app directory
$ python3 -m venv ./venv  # create the virtual environment
$ source ./venv/bin/activate  # activate virtual environment (Linux / OSX; different on Windows)
(venv) $ pip install -r requirements.txt  # install dependencies
(venv) $ source ./run_app  # use the app startup script (== 'flask run')

To start the server, use flask run, and navigate to http://localhost:5000

The design itself uses Bootstrap for CSS, Font Awesome for icons.

Screenshots

screenshots