A React-based web application for monitoring and visualizing wildfire data with interactive maps and real-time updates.
- Interactive Map Visualization: Real-time wildfire location mapping using Mapbox GL
- Dual User Interface: Separate interfaces for public users and official personnel
- Real-time Data Updates: Live wildfire status monitoring and notifications
- Responsive Design: Mobile-first design with Tailwind CSS
- Social Media Integration: Community updates and social sharing capabilities
- Location-based Services: GPS integration for proximity-based alerts
- Frontend Framework: React 18 with TypeScript
- Build Tool: Vite
- Styling: Tailwind CSS
- Maps: Mapbox GL JS
- State Management: Zustand
- Routing: React Router DOM
- HTTP Client: Axios
- Code Quality: ESLint + Prettier with Airbnb configuration
- Clone the repository:
git clone <repository-url>
cd junction- Install dependencies:
npm install- Set up environment variables:
cp .env.example .envConfigure your Mapbox API token and other required environment variables.
- Start the development server:
npm run devThe application will be available at http://localhost:3000
npm run dev- Start development servernpm run build- Build for productionnpm run lint- Run ESLintnpm run lint:fix- Fix ESLint errorsnpm run format- Format code with Prettiernpm run preview- Preview production build
/- Splash screen with automatic redirect/dashboard- Main public dashboard with wildfire map/official- Official personnel login/main page/official/dashboard- Official dashboard with enhanced features
- MapBox: Interactive map component with marker clustering
- MarkerDetails: Detailed wildfire information display
- BottomDrawer: Slide-up panel for additional information
- LoadingOverlay: Loading states and progress indicators
- Toast: Notification system for alerts and updates
The project uses several configuration files:
vite.config.ts- Vite build configurationtailwind.config.ts- Tailwind CSS customizationeslint.config.js- ESLint rules and pluginstsconfig.json- TypeScript compiler options
Create a .env file in the root directory:
VITE_MAPBOX_TOKEN=your_mapbox_token_here
VITE_API_BASE_URL=your_api_base_urlThis project is private and proprietary.
Please follow the established code style and run linting before submitting changes:
npm run lint:fix
npm run format