Computer vision Flask example
-
npm install http-server -g
-
pip3 install virtualenv
-
mkdir edges on linux/unix systems (create directory edges)
-
run command virtualenv -p python3 edges
-
run commands
source bin/activate, pip3 install flask, pip3 install flask-cors
-
create directory for server code and client code mkdir client, mkdir server
-
take app.py and place it in the server folder, take index.html and index.js and place them in the client folder.
-
start python server with python3 app.py
-
navigate to the client folder and run the following command, http-server .