Skip to content

Homedork's database server. Client-side requests sent via homedork's API are handled here.

Notifications You must be signed in to change notification settings

homedork-se2/hd-server

Repository files navigation

HOMEDORK's DATABASE SERVER

Communicates with Homedork's API and user's local hub

  • Communication with API

    The API acts as a client to this DB server, constructs corresponding DB queries based on received http requests.

  • Communication with Local hub

    Each User's local hub communicates with this server for device based operations

    A TCP socket is created between this server and the corresponding hub with the hub's address gotten from the device object being updated.

  • API HTTP requests are followed down here for Database CRUD operations and signalling the local hub in use.

  • HTTP request (GET, POST, PUT, DELETE, ...)

    On HTTP requests to the API, the QueryBuilder is invoked in regard to the service class the called its method. The appropriate query sent to the server socket, processed, and the API is responded to.

    RESPONSE (TO API)

    ON DB SELECT,INSERT,DELETE or UPDATE the updated object is sent back, suffixed to a status code.

    FORMAT OF SERVER RESPONSE TO API

    img.png

    CONTROL MESSAGE CODES

    img_1.png

  • Encrypted TCP channels for communication to both API and local hub.

  • Project dependencies

    Dependency Use
    MYSQL connector Database
    JUNIT Junit test framework
    GSON JSON parsing
    JSON JSON parsing
  • SERVER CLASS DIAGRAM

    img_3.png

    Server classes diagram

  • SERVER ARCHITECTURE

    img_2.png

    Overview of the current's server architecture.

About

Homedork's database server. Client-side requests sent via homedork's API are handled here.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages