GithubHelp home page GithubHelp logo

geoplus's Introduction

GeoPlus

GeoPlus is a location tracking application that allows users to track each other on a map using WebSocket communication. This application showcases the use of Spring WebSocket on the backend and plain HTML, CSS, and JavaScript on the frontend.

Table of Contents

Features

  • Real-time location tracking on an interactive map.
  • WebSocket communication for seamless updates.
  • Simple and intuitive user interface.
  • Customizable marker popups with user information.

Setup

  1. Clone the Repository:

    git clone https://github.com/your-username/geoplus.git
    cd geoplus
  2. Run the Backend:

open the project in your favorite Java IDE. Run the WebSocketConfig and LocationController classes. The WebSocket server will be accessible at http://localhost:8080/ws.

  1. Run the Frontend:
  • Open index.html in a web browser.
  • Enter your ID and the ID of the person you want to track.
  • Enjoy real-time location updates on the map!

Components

Backend

WebSocketConfiguration

Configures Spring WebSocket, specifying message prefixes and STOMP endpoints for WebSocket communication.

LocationController

Handles WebSocket messages related to location updates. Receives location data, logs it, and broadcasts it to the intended recipient.

LocationEntity

A Java class representing the structure of a location, including sender, recipient, latitude, and longitude.

Frontend

HTML

Defines the structure of the application, includes references to external libraries (Leaflet, SockJS, Stomp).

JavaScript

Manages WebSocket connections, initializes the map, handles real-time location updates, and sends the user's current location periodically.

CSS

Applies styles to HTML elements, ensuring a visually appealing and responsive user interface.

geoplus's People

Contributors

rcvaram avatar

Watchers

 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.