Web DevelopmentSoftware EngineeringVerified engineering case
GeoAlert — Signalement routier en temps réel au Maroc
Collaborative web application for mapping road incidents with authentication, MongoDB, and real-time broadcasting via Socket.IO.
GeoAlert allows drivers to report road incidents from their GPS location or directly on an interactive map. Reports are recorded in MongoDB and instantly synchronized with all connected users using Socket.IO.

01 / 04
01. Context & Challenge
Problem addressed
Drivers do not have a collaborative platform providing real-time visibility of road incidents to anticipate hazards and improve their journeys.
02. Engineering Goals
Objectives
Enable driver authentication and geolocated road incident reporting via GPS or direct map selection.
Broadcast every new incident report instantly to all connected drivers in real time.
Reliably persist user accounts, active sessions, and geotagged incident records.
Deliver a responsive map-centric interface usable across desktop and mobile devices.
03. Architecture & System
Architecture
GeoAlert is a Node.js/Express web application using EJS for rendering interfaces, MongoDB with Mongoose for data persistence, and Socket.IO to instantly synchronize new incidents among all connected users.
Architectural components & pipeline
›EJS server-rendered frontend powered by interactive Leaflet / OpenStreetMap tiles and browser Geolocation API.
›Node.js / Express.js backend managing authentication (`bcryptjs`), persistent sessions (`connect-mongo`), and incident routes.
›Bidirectional Socket.IO real-time layer pushing live incident markers to all connected browsers.
›MongoDB persistence modeled with Mongoose across linked `User` and `Incident` collections.
04. Metrics & Outcomes
Documented results
Working real-time collaborative app connecting browser geolocation, Leaflet maps, and instant Socket.IO broadcasting.
Complete user & incident lifecycle validated (registration, login, logout, creation, and live map exploration).
Relational `User` → `Incident` MongoDB persistence and session storage functioning smoothly.
Clean EJS template compilation with syntax-verified server and client JavaScript.