A modern web application to track and manage campus bus services at Nitte University. Built with React and featuring a responsive design with dark/light theme support.
-
Real-Time Bus Tracking
- View all campus buses and their current status
- Track buses by route and stop locations
- See detailed bus information including arrival/departure times
-
Smart Filtering
- Search buses by name, route, or stops
- Filter buses by route direction
- Find buses by nearest stop location
-
Interactive Interface
- Responsive design that works on desktop and mobile
- Dark/light theme with system preference detection
- Collapsible sidebar for better space utilization
- Animated transitions and hover effects
-
Stop Management
- View all stops for each bus route
- See upcoming departures for each stop
- Quick access to nearest stop information
- Node.js (v14 or later)
- npm (v6 or later)
-
Clone the repository:
git clone https://github.com/your-username/nitte-bus-tracker.git
-
Navigate to project directory:
cd nitte-bus-tracker -
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open http://localhost:3000 to view it in your browser.
-
Finding a Bus
- Use the search bar to find buses by name or route
- Select from the "All Buses" dropdown to filter by specific route
- Click on a bus card to view detailed information
-
Finding Stops
- Use the "Select Nearest Stop" dropdown to find buses by stop
- Stops show next departure time and bus information
- Upcoming departures are highlighted
-
Theme Switching
- Click the theme toggle in the top bar to switch between dark and light modes
- Theme preference is saved and persists between sessions
- Automatically detects system theme preference on first visit
nitte-bus-tracker/
├── public/
├── src/
│ ├── assets/
│ │ └── images/
│ ├── components/
│ │ ├── BusCard.jsx
│ │ ├── Layout.jsx
│ │ ├── Sidebar.jsx
│ │ └── Topbar.jsx
│ ├── context/
│ │ └── AppUIContext.jsx
│ ├── data/
│ │ └── buses.json
│ ├── pages/
│ │ ├── Dashboard.jsx
│ │ └── BusDetailPage.jsx
│ └── styles/
│ ├── App.css
│ ├── index.css
│ └── [component].css
└── package.json
- React - Frontend framework
- React Router - Navigation and routing
- CSS Variables - Theming and styling
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Nitte University for supporting the project
- All contributors who helped improve the application
- React community for excellent documentation and resources