Flask Server for handling requests to drive the Intellisert device. CEG-4981
- Install Virtualenv:
pip install virtualenv- Virtualenv allows one to run an application with an isolated Python environment. When enabled, packages can be installed to a specific environment and programs can be executed within its scope. This prevents installing pip packages to the system's Python environment.
- Navigate to Intellisert-Server/ and create a virtual python environment (named venv):
cd Intellisert-Server; virtualenv venv --python=python3.7(Install python3.7 if not installed) - Enable the virtual environment:
source venv/bin/activate(should see (venv) on at beginning of terminal prompt when activated)- To deactivate:
deactivate
- To deactivate:
- Install necessary packages:
pip install -r requirements.txt - Run in development mode:
python run.py - If operating through ssh, pull up your favorite browser and navigate to Intellisert's-IP-address:5000 to hit the home endpoint of server. If operating directly on device, navigate to 0.0.0.0:5000
- Follow this tutorial from DigitalOcean