Giter Club home page Giter Club logo

library-pi2's Introduction

Welcome to Our Library System Application

  • 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

Library functions API

https://documenter.getpostman.com/view/6571696/S1M3uQMp?version=latest&fbclid=IwAR381X4IIvZGb2-dSPBbFoUDg4N9bJXEI4cMnWPnPBb0YU82STHn_vHhmJ0

Use dropdown to switch between python-requests and curl format for GET/POST/PUT/DELETE requests


Running dev environment in local

Activate the virtualenv (OS X & Linux)

$ source venv/bin/activate

Deactivate the virtualenv (OS X & Linux)

$ deactivate

Activate flask app for hot reload (dev environment)

$ export FLASK_ENV=development 
$ export FLASK_APP=flask_main.py
$ flask run

Running dev environment as docker image

install docker

on mac

$ brew install docker-for-mac

linux

$ apt-get install docker

navigate to folder container docker-compose.yml

$ cd path/to/master-pi

create a .env file with the following

FLASK_ENV=development
FLASK_APP=flask_main.py
SECRET_KEY=<key>
DB_USER=root
DB_PW=<pw>
ADMIN_USER=jaqen
ADMIN_PW=<pw>

build docker container

$ docker-compose build

run the app

$ 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

library-pi2's People

Contributors

ijkeleher avatar boxhezi avatar rmit-s3491161-christopher-heuvel avatar blaisesaunders avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.