Skip to content

This is the backend of the HomeLock App and Door Lock.

Notifications You must be signed in to change notification settings

suvambasak/lock-server

Repository files navigation

About Lock Backend

This is the backend of the HomeLock App and Door Lock. The socket server communicates with the door lock and that web services handle the android app activities.

Setup

Installation and Dependencies

$ cd Downloads
$ sudo chmod +x xampp-linux-x64-7.3.28-1-installer.run
$ sudo ./xampp-linux-x64-7.3.28-1-installer.run
  • Install two python packages python3-pymysql, python3-crypto
$ sudo apt install python3-pymysql python3-crypto

Start Server

  • Install git and clone the repository inside htdocs
$ sudo apt install git
$ sudo chmod -R user /opt/lampp/htdocs/
$ cd /opt/lampp/htdocs/
$ git clone https://github.com/suvambasak/lock-server.git
$ sudo chmod +x lock-server/socket_server/Server.py
$ sudo ./Server.sh

Import Database