This project is a python webserver designed to respond to Debaisu Conn Application requests.
- Login and Logout
- List connected devices
- Get light bulb specific information
- Action on Light Bulb (On-Off)
- Python v3.0 or higher
- Python [Virtual Environment](http://flask.pocoo.org/docs/0.12/installation/#virtualenv)
- SQLite database
-
Install python virtual environment
sudo pip install virtualenv
-
Setup virtual environment on project
python3 -m venv flask
-
Activate virtual environment
. flask/bin/activate
-
Setup environment variables
export FLASK_APP=webservice_iot/webservice_iot.py
-
(Fresh Start) Re-initialize database
flask initdb
-
Run application
flask run