Problem scenario
You want to deploy Flask to test it out. You also want a RESTful endpoint on an Ubuntu Linux server. How do you do this?
Solution
1. Install Flask. Run these five commands:
sudo apt-get -y update
sudo apt-get -y install python python-pip
sudo pip install –upgrade pip setuptools
sudo apt-get -y install python3-dev virtualenv python3-venv
pip install flask
2.
…
Continue reading “How Do You Use Flask as a RESTful Endpoint on an Ubuntu Server?”