The web server for the Prosopagnosia Helper System which runs on a AWS EC2 instances.
The server is currently running here: http://52.55.117.58:5000/
This project is developed specifically for the AR Glass Vuzix Blade.
Copyright 2020 EraO Prosopagnosia Helper Dev Team, Liren Pan, Yixiao Hong, Hongzheng Xu, Stephen Huang, Tiancong Wang
Supervised by Prof. Steve Mann (http://www.eecg.toronto.edu/~mann/)
Licensed under the Apache License, Version 2.0 (the "License")
- Python 3.5 (or better)
- A python virtual environment (Optional)
- Flask
- Boto3 (AWS Python SDK)
- Python MySQL connecter
- AWS CLI
-
Create an AWS EC2 Instance (Ubuntu 16.04)
-
Open inbound port of 5000 for the server
-
Create an AWS S3 Storage and make it public
-
Create an AWS RDS with MySQL database (the SQL database model can be find in mySQL_model folder)
-
Make sure the AWS Rekognition service is enabled
-
Access the EC2 Instance with SSH
-
Use git to pull the current repository to the server
-
Create a new python virtual environment (Optional) as follows:
python -m venv venv
- Install Flask
venv/bin/pip install flask
-
Install AWS Command Line Interface (CLI)
Follow instruction in https://aws.amazon.com/cli/
-
Install Boto3
venv/bin/pip install boto3
- Install python mysql connecter
pip install mysql-connector-python
- Configure aws credentials
aws configure
- Run the app
run.py
- The web service can be accessed though link https://[Server Address]:5000