rpi IoT app skeleton:
- AP setup
nginx
+flask
inwsgi
modesupervisor
+rsyslog
+logrotate
for more production oriented setup
wget https://raw.githubusercontent.com/avishayp/pi-app/master/setup.sh
chmod +x ap_setup.sh
./setup.sh [ssid-name] [ssid-pass]
Only tested on rpi3. Open an issue if something does not work as expected.