How pranayasheela/intramap works
Purpose and Runtime
IntraMap is a React single-page campus room-navigation application for IIITDMJ’s Computer Center (CC) and LHTC buildings. It supports room search, building/floor exploration, floor-plan display, and demo login/admin flows. Browser startup is rooted at src/index.js, which renders the app shell in src/App.js; npm/Node runtime metadata is in package.json.
Application Composition and Navigation
src/App.js is the top-level orchestration boundary: it selects page-level experiences and connects the landing, login, administration, building, and floor-plan views. The application appears to use component/state-driven navigation rather than a separately visible route-directory structure.
• src/App.js
• src/LandingPage.jsx
• src/Login.js
Discovery and Room-Selection Flow
The landing experience is the primary user entry point. It presents cross-building room discovery and transitions users from a room result toward its building/floor context. Selected room/building/floor state is the key control payload passed into visualization and floor-plan stages.
• src/LandingPage.jsx
• src/BuildingPage.jsx
• src/LHTCBuildingPage.jsx
Building Visualization Boundary
CC and LHTC have intentionally separate visual implementations, reflecting different source assets and interaction models. CC is rendered through a building viewer, while LHTC uses an interactive SVG illustration. Both expose floor-level interactions that drive room-panel and floor-plan selection.
• src/BuildingViewer.jsx
• src/LHTCBuildingSVG.jsx
• public/Untitled.glb
Floor-Plan Rendering Pipeline
Building-specific router components map a selected floor to the appropriate detailed plan component. This isolates floor-plan content from top-level navigation and allows CC and LHTC floor inventories/layouts to evolve independently.
• src/FloorPlanRouter.jsx
• src/FloorPlanViewer.jsx
• src/LHTCFloorPlanRouter.jsx
• src/LHTCFloorPlanViewer1.jsx
• src/LHTCFloorPlanViewer2.jsx
Identity, Booking, and Admin Boundary
The repository includes a PHP backend alongside the React client. Login and booking are server-side endpoints, with distinct booking handling for LHTC, and a shared database connector. Admin functionality is represented in the frontend as a dedicated page, likely consuming or coordinating with these backend capabilities.
• src/AdminPage.jsx
• backend/login.php
• backend/booking.php
• backend/lhtc_booking.php
• backend/db.php
Presentation and Static Delivery
React components are styled primarily through application/global/login stylesheets. Static browser assets and PWA metadata are served from public/; the GLB asset indicates an available or planned 3D-model integration, separate from the documented 2D/SVG navigation path.
• src/App.css
• src/index.css
• src/Login.css
• public/index.html
• public/manifest.json
Main entry points: App.js App shell · LandingPage.jsx Room discovery · AdminPage.jsx Admin page · BuildingViewer.jsx CC building viewer
Components 20
React client
- Browser entry · Serves the SPA shell and PWA metadata.
public/index.html - React bootstrap
src/index.js - App shell · Selects landing, login, admin, building, and plan experiences.
src/App.js - Room discovery · Searches rooms and carries selected room, building, and floor context.
src/LandingPage.jsx - Login view
src/Login.js - Admin page
src/AdminPage.jsx
Building visualization
- CC building page
src/BuildingPage.jsx - LHTC building page
src/LHTCBuildingPage.jsx - CC building viewer · Provides CC floor-level interactions.
src/BuildingViewer.jsx - LHTC SVG viewer · Provides LHTC floor-level interactions.
src/LHTCBuildingSVG.jsx - CC plan router · Maps a selected CC floor to its detailed plan.
src/FloorPlanRouter.jsx - CC plan viewer
src/FloorPlanViewer.jsx - LHTC plan router · Maps a selected LHTC floor to its detailed plan.
src/LHTCFloorPlanRouter.jsx - LHTC plan viewer 1
src/LHTCFloorPlanViewer1.jsx - LHTC plan viewer 2
src/LHTCFloorPlanViewer2.jsx - CC 3D model · Available 3D asset separate from the 2D navigation path.
public/Untitled.glb
PHP services
- Login endpoint
backend/login.php - CC booking endpoint
backend/booking.php - LHTC booking endpoint
backend/lhtc_booking.php - Database connector · Shared backend database connection.
backend/db.php
Connections 21
- Browser entry → React bootstrap: loads SPA
- React bootstrap → App shell: renders
- App shell → Room discovery: primary entry
- App shell → Login view: identity flow
- App shell → Admin page: admin flow
- Room discovery → CC building page: CC selection
- Room discovery → LHTC building page: LHTC selection
- CC building page → CC building viewer: building interaction
- LHTC building page → LHTC SVG viewer: building interaction
- CC building viewer → CC plan router: selected floor
- LHTC SVG viewer → LHTC plan router: selected floor
- CC plan router → CC plan viewer: renders plan
- LHTC plan router → LHTC plan viewer 1: floor plan
- LHTC plan router → LHTC plan viewer 2: floor plan
- CC building viewer → CC 3D model: 3D asset option
- Login view → Login endpoint: auth request
- Admin page → CC booking endpoint: CC booking
- Admin page → LHTC booking endpoint: LHTC booking
- Login endpoint → Database connector: uses
- CC booking endpoint → Database connector: uses
- LHTC booking endpoint → Database connector: uses