To construct a fog-computing framework based on Raspberry Pi.
$ sudo git clone https://github.com/wenbo1188/distribute.git
$ cd project_path
$ sudo pip install -e .
Running distribute app:
$ export FLASK_APP=distribute
$ export FLASK_DEBUG=1
$ flask run #for locally debugging or
$ flask run --host=0.0.0.0 #for public using
Mobile device connecting:
using tool create_ap to make rpi an AP.
$ sudo git clone https://github.com/oblique/create_ap.git
$ cd create_ap
$ sudo make install
$ sudo apt-get install util-linux procps hostapd iproute2 iw haveged dnsmasq # install tools required for create_ap