SmartRoutes

A real-time traffic congestion management app for Nigeria that helps users navigate through traffic efficiently.

Features

  • User authentication with Gmail
  • Real-time location tracking and updates
  • Traffic congestion reporting and visualization
  • Smart route recommendations based on current traffic conditions
  • User-friendly interface optimized for mobile devices

Project Structure

├── backend/
│   ├── database/       # SQLite database setup and queries
│   ├── routes/         # API endpoints
│   └── index.ts        # Main API entry point
├── frontend/
│   ├── components/     # React components
│   ├── index.html      # Main HTML template
│   └── index.tsx       # Frontend entry point
└── shared/             # Shared types and utilities

Technologies Used

  • Frontend: React, TailwindCSS
  • Backend: Hono API framework
  • Database: SQLite
  • Maps: OpenStreetMap with Leaflet
  • Authentication: Email-based authentication

How It Works

  1. Users sign up with their Gmail address
  2. The app tracks user location (with permission)
  3. Users can report traffic conditions in their area
  4. The app aggregates traffic data from all users
  5. Smart algorithms suggest the best routes based on current traffic conditions