Giter Club home page Giter Club logo

iot-socket-demo's Introduction

IoT-Socket-Demo

This is a demo IoT project based on socket-io and express by DSC KGEC.
The firmware for the IoT device can be found on Socket-IoT-Demo-Firmware

Contents

  1. Description
  2. Installing
  3. Languages Used
  4. Project Images
  5. Contribution

Description

This project provides a very minimalistic dashboard with neomorphic design scheme, which is designed by DSC Web Team. The backend is based on node-js, it provides a socket server (using socket.io) and an http server (using express). The http server is used to serve the webpage which is just a basic webpage using ejs templates, as well as to serve the socket server. No authentication has been implemented as the project is only meant for testing and demonstration purposes.

What is Socket IO?

Socket.io is a Javascript networking library that runs server-side on Node.js and in the browser. It abstracts away websockets and other communication schemes, depending upon browser capabilities. It also includes convenient features such as broadcasts and multicasts, which are beyond the features of plain websockets.

It is a way to communicate between a client and a server which allows real-time data flow with bi-directional communication, i.e., we can flow data in both directions:

  • Client to Server
  • Server to Client

Architecture

Why Socket.IO?

It is a tool to implement realtime communication between server and clients very conveniently, without the clients needing to send multiple requests to the server.

Why Express?

We have chosen Express as the framework for serving an http server. This server is used by Socket.io to establish the connection with its clients and is used to serve the dashboard as well.

How this Project will Help Us?

This project will help node.js developers to start making APIs and implementing sockets as well as provide an insight to the working of a basic IoT system.

For the Firmware source code (for NodeMCU), visit Socket-IoT-Demo-Firmware


Installing

Softwares needed

Libraries

Socket Admin Dashboard

Go to this URL: https://admin.socket.io and put iot-socket.herokuapp.com/admin in the Server URL. Note that the domain iot-socket.herokuapp.com is just for the demonstration, if you are running this project locally, replace that URL with localhost:PORT where PORT is the same PORT that your server is running on. It should look something like this:

Phone-Light


Languages Used

  • JavaScript


Project Images


Desktop-Light

Desktop-Dark

Phone-Light Phone-Dark

Contribution

This is a concept for beginners starting with IoT. Feel free to fork, clone, create issues and/or make PRs. We will be more than happy to receive your contributions.

iot-socket-demo's People

Contributors

anindyamitra15 avatar sohamdasbiswas 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.