Skip to content

This is a simple IoT door lock system developped using Flask

License

Notifications You must be signed in to change notification settings

ahmnouira/Door_Lock_Flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Door_Lock_Flask

This is a simple IoT door lock system developped using flask

Overview

Here some photos about this work:

main_page

unlock

door_locked

Running this app

This app is designed to run in different ways:

  1. As a standalone app running on your machine
  2. As a Docker container running on your machine

As a standalone app

From a command/shell termianl

  1. cd into the parent directory you want to install the project in
  2. git clone the project into a child directory
  3. cd into the child directory
  4. run pip install -r requirements.txt to install dependencies

run the app

After installing, run the server using flask run

As a Docker container running on your machine

  1. install Docker
  2. run docker --version to check if docker is installed
  3. run docker build -t flask_lock_door:latest . to build the docker image
  4. docker images list the local avaible images
  5. docker run --name flask_app -d -p 8000:5000 --rm flask_lock_door:latest to start the container