A comprehensive emergency response coordination platform built with React, providing real-time monitoring and management of emergencies, NGOs, resources, and volunteers.
- Node.js (v18 or higher) - Download here
- npm (comes with Node.js)
-
Easy Start (Windows):
# Just double-click the start.bat file start.bat
-
Manual Setup:
# Install dependencies npm install # Start development server npm run dev
-
Open the application:
- The app will automatically open at
http://localhost:3000 - If not, manually navigate to that URL in your browser
- The app will automatically open at
ConnectCare/
├── Pages/ # Main page components (existing)
│ ├── Dashboard.jsx
│ ├── Emergencies.jsx
│ ├── NGOs.jsx
│ ├── Resources.jsx
│ └── Volunteers.jsx
├── Components/ # Reusable components (existing)
│ ├── dashboard/
│ ├── emergencies/
│ ├── ngos/
│ ├── resources/
│ └── volunteers/
├── src/ # Application source (new)
│ ├── components/ # UI components
│ ├── entities/ # Data models & API simulation
│ ├── lib/ # Utilities
│ └── utils/ # Helper functions
├── dashboard.html # Original HTML dashboard (preserved)
├── emergencyManagement.html # Original emergency management (preserved)
└── emergencyData.js # Original data management (preserved)
- Real-time statistics display
- Active emergency monitoring
- Resource status overview
- Recent activity feed
- Quick action buttons
- Add, edit, delete emergencies
- Real-time status updates
- Severity levels (Critical, High, Medium, Low)
- Location-based tracking
- Contact information management
- Verified organization listings
- Capability tracking
- Coverage area mapping
- Contact management
- Inventory tracking
- Availability status
- Location-based distribution
- Type categorization
- Skill-based matching
- Availability tracking
- Background verification
- Experience levels
- React 18 - Modern React with hooks
- Vite - Fast development server
- Tailwind CSS - Utility-first styling
- React Router - Client-side routing
- Lucide React - Beautiful icons
- Radix UI - Accessible components
- Hot Module Replacement - Instant updates during development
- Mock Data System - Simulated API for development
- Component Library - Reusable UI components
- Responsive Design - Works on all devices
- TypeScript Ready - Can be easily converted
- Mock Entities - Simulated database operations
- Local Storage - Data persistence (from original system)
- Real-time Updates - Live data synchronization
- API Simulation - Realistic loading states
The application includes a complete UI component system:
- Cards - Information containers with hover effects
- Buttons - Various styles and sizes
- Badges - Status indicators
- Skeletons - Loading states
- Forms - Data input components
{
id: number,
title: string,
type: string,
location: string,
severity: 'critical' | 'high' | 'medium' | 'low',
status: 'active' | 'responding' | 'resolved',
affected_count: number,
urgent_needs: string[],
contact_info: object,
created_date: string
}{
id: number,
name: string,
type: string,
verified: boolean,
capabilities: string[],
coverage_areas: string[],
contact_info: object
}npm run buildnpm run previewThe build output will be in the dist/ directory, ready for deployment to any static hosting service.
When your database schema is ready:
- Replace Mock Data: Update
src/entities/all.jswith real API calls - Add Authentication: Implement user login/logout
- Real-time Updates: Add WebSocket connections
- Database Integration: Connect to your actual database
- Chrome/Edge - Full support
- Firefox - Full support
- Safari - Full support
- Mobile browsers - Responsive design
- Preserve Existing Files: Don't modify existing JSX components
- Add New Features: Create new components in
src/components/ - Update Entities: Modify
src/entities/all.jsfor data changes - Test Changes: Always test with
npm run dev
For issues or questions:
- Check Console: Look for errors in browser developer tools
- Verify Node.js: Ensure Node.js v18+ is installed
- Clear Cache: Try clearing browser cache and
node_modules/ - Restart Server: Stop and restart the development server
- ✅ Run the Application: Use
start.batornpm run dev - 🔗 Database Integration: Connect your schema when ready
- 🎨 Customize Styling: Modify Tailwind classes as needed
- 📊 Add Features: Build on the existing component structure
The application is now ready to run without modifying any of your existing JSX files!