How saanvi-b-star/safe-routes-recommendation-project works
This repository is a web app for safer-route journeys, with account entry, route/map interaction, emergency actions, and route feedback. The visible journey begins at the landing page, proceeds through signup or login to Home, where users request and select routes, and can report feedback or trigger SOS actions. The backend server is present, but its implementation details are not exposed in the provided excerpts; edges to it reflect only the frontend’s explicit HTTP requests. The README is a placeholder, so broader claims about route-safety data inputs are not verified here.
Main entry points: Home.jsx Journey Map · App.jsx Route App · server.js HTTP Server · LandingPage.jsx Landing Page
Components 16
Entry and Accounts
- Route App
src/frontend/src/App.jsx - Landing Page
src/frontend/src/Components/LandingPage.jsx - Navigation Bar
src/frontend/src/Components/Navbar.jsx - Welcome View
src/frontend/src/Components/Welcome.jsx - About View
src/frontend/src/Components/About.jsx - Signup
src/frontend/src/Components/SignUp.jsx - Login
src/frontend/src/Components/Login.jsx
Journey and Routing
- Journey Map
src/frontend/src/Components/Home.jsx - Route Feedback
src/frontend/src/Components/Feedback.jsx
Safety Actions
- SOS Message
src/frontend/src/Components/SOSmsg.jsx - Siren Control
src/frontend/src/Components/SOScall.jsx - Siren Audio
src/frontend/src/assets/police-siren.mp3
Server and Services
- HTTP Server
src/backend/server.js - GraphHopper
- OpenStreetMap Tiles
Other components
- Traveler
Connections 25
- Traveler → Route App: opens
- Route App → Landing Page: routes to
src/frontend/src/App.jsx - Route App → Signup: routes to
src/frontend/src/App.jsx - Route App → Login: routes to
src/frontend/src/App.jsx - Route App → Journey Map: routes to
src/frontend/src/App.jsx - Route App → Route Feedback: routes to
src/frontend/src/App.jsx - Landing Page → Navigation Bar: renders
src/frontend/src/Components/LandingPage.jsx - Landing Page → Welcome View: renders
src/frontend/src/Components/LandingPage.jsx - Landing Page → About View: renders
src/frontend/src/Components/LandingPage.jsx - Traveler → Signup: submits details
src/frontend/src/Components/SignUp.jsx - Signup → HTTP Server: posts registration
src/frontend/src/Components/SignUp.jsx - Traveler → Login: submits email
src/frontend/src/Components/Login.jsx - Login → HTTP Server: posts login
src/frontend/src/Components/Login.jsx - Traveler → Journey Map: plans journey
src/frontend/src/Components/Home.jsx - Journey Map → GraphHopper: requests routes
src/frontend/src/Components/Home.jsx - Journey Map → OpenStreetMap Tiles: loads map tiles
src/frontend/src/Components/Home.jsx - Journey Map → HTTP Server: fetches alerts
src/frontend/src/Components/Home.jsx - Journey Map → SOS Message: renders
src/frontend/src/Components/Home.jsx - Journey Map → Siren Control: renders
src/frontend/src/Components/Home.jsx - Traveler → Route Feedback: submits feedback
src/frontend/src/Components/Feedback.jsx - Route Feedback → HTTP Server: posts feedback
src/frontend/src/Components/Feedback.jsx - Traveler → SOS Message: confirms SOS
src/frontend/src/Components/SOSmsg.jsx - SOS Message → HTTP Server: posts SMS request
src/frontend/src/Components/SOSmsg.jsx - Traveler → Siren Control: confirms siren
src/frontend/src/Components/SOScall.jsx - Siren Control → Siren Audio: plays audio
src/frontend/src/Components/SOScall.jsx