This is a demo app for polling users on random questions.
Server is using MySQL and is written in Python and uses Flask framework. You'll need to install MySQL, Python, pip and Python Virtual Environemt:
Use brew
in Mac to install MySQL:
brew install mysql
Python 3 is required.
# make sure you have Python 3
python3 --version
# make sure pip3 is installed
pip3 --version
# install pip3 otherwise
python3 -m pip --version
# make sure virtualenv is installed
python3 -m pip install --user virtualenv
source env/bin/activate
(venv) pip3 install -r requirements.txt
mysql.server start
FLASK_APP=app/__init__.py flask run
If you are using Microsoft Visual Studio Code you can use the IDE debugger to start the app as well. Launch the Flask
task to start the app.