- IoT Python application running on 2x Raspberry Pi
- Utilises facial recognition and image detection for book borrowing
- Flask API and Admin Dashboard for tracking book loan data
- Google Cloud SQL used for database
- Google Data Studio used for analytics
Use dropdown to switch between python-requests and curl format for GET/POST/PUT/DELETE requests
$ source venv/bin/activate
$ deactivate
$ export FLASK_ENV=development
$ export FLASK_APP=flask_main.py
$ flask run
on mac
$ brew install docker-for-mac
linux
$ apt-get install docker
$ cd path/to/master-pi
FLASK_ENV=development
FLASK_APP=flask_main.py
SECRET_KEY=<key>
DB_USER=root
DB_PW=<pw>
ADMIN_USER=jaqen
ADMIN_PW=<pw>
$ docker-compose build
$ docker-compose up
This command runs all containers defined in your docker-compose file. If it is needed โ rebuild and remove old unused containers
$ docker-compose up -d --build --remove-orphans