cs2108MiniProject

Requirements

  1. Python 3
  2. Anaconda installed with default env(root) https://www.anaconda.com/download
  3. flask-sqlalchemy
  4. others: nltk, sklearn, numpy ... (packages used in lab 2 image retrieval)

Install flask if it is not already installed

# type inside terminal
conda install -c anaconda flask 

Install flask-sqlalchemy for simple database

conda install -c conda-forge flask-sqlalchemy 

Install face_recognition library

conda install boost
pip install face_recognition

How to regenerate test data

  1. open database.db using a sqlite tool
  2. copy everything inside seedAll.sql
  3. paste under 'query'

How to run

# type inside terminal
export FLASK_APP=app.py
flask run
# and then open browser at http://127.0.0.1:5000/, make sure that port is not being used

Common issues

  1. session secret key not set -> solution = clear browser cache and try again