Skip to content

Latest commit

Β 

History

History
167 lines (137 loc) Β· 4.67 KB

README.md

File metadata and controls

167 lines (137 loc) Β· 4.67 KB

🌍 ResQMap

A Unified Disaster Relief & Resource Management System

Streamlining emergency responses, resource distribution, and real-time mapping during crises.


πŸš€ Overview

ResQMap (AidSync) is a disaster management platform that helps agencies, volunteers, and victims coordinate during emergencies. It provides real-time situational awareness, resource tracking, and analytics to ensure aid reaches those in need.


✨ Key Features

  • πŸ—ΊοΈ Interactive Relief Map (React Leaflet)
  • 🚨 Emergency Alert System
  • πŸ“Š Resource Analytics Dashboard (Recharts)
  • πŸ“± Responsive UI (Tailwind CSS)
  • ⚑ Fast & Reliable (Vite + Node)

πŸ› οΈ Tech Stack

Frontend: React (Vite), Tailwind CSS, React Leaflet, Recharts, Lucide React

Backend: Node.js, Express, MongoDB (Mongoose), JWT-based auth


πŸ“ Full Project Folder Structure

ResQMap/
β”œβ”€β”€ Frontend/
β”‚   β”œβ”€β”€ package.json
β”‚   β”œβ”€β”€ vite.config.js
β”‚   β”œβ”€β”€ postcss.config.js
β”‚   β”œβ”€β”€ tailwind.config.js
β”‚   β”œβ”€β”€ eslint.config.js
β”‚   β”œβ”€β”€ README.md
β”‚   β”œβ”€β”€ public/
β”‚   β”‚   β”œβ”€β”€ favicon.svg
β”‚   β”‚   └── icons.svg
β”‚   └── src/
β”‚       β”œβ”€β”€ main.jsx
β”‚       β”œβ”€β”€ index.css
β”‚       β”œβ”€β”€ App.css
β”‚       β”œβ”€β”€ App.jsx
β”‚       β”œβ”€β”€ assets/
β”‚       β”‚   β”œβ”€β”€ hero.png
β”‚       β”‚   β”œβ”€β”€ react.svg
β”‚       β”‚   └── vite.svg
β”‚       β”œβ”€β”€ components/
β”‚       β”‚   β”œβ”€β”€ AuthGuard.jsx
β”‚       β”‚   β”œβ”€β”€ EmergencyBanner.jsx
β”‚       β”‚   β”œβ”€β”€ ErrorBoundary.jsx
β”‚       β”‚   β”œβ”€β”€ FilterBar.jsx
β”‚       β”‚   β”œβ”€β”€ HeatmapLayer.jsx
β”‚       β”‚   β”œβ”€β”€ LoadingSpinner.jsx
β”‚       β”‚   β”œβ”€β”€ ResourceCard.jsx
β”‚       β”‚   β”œβ”€β”€ ResourceChart.jsx
β”‚       β”‚   β”œβ”€β”€ ResourceMap.jsx
β”‚       β”‚   β”œβ”€β”€ RoutePlanner.jsx
β”‚       β”‚   β”œβ”€β”€ Sidebar.jsx
β”‚       β”‚   β”œβ”€β”€ StatCard.jsx
β”‚       β”‚   β”œβ”€β”€ StatusBadge.jsx
β”‚       β”‚   └── Toast.jsx
β”‚       β”œβ”€β”€ contexts/
β”‚       β”‚   └── AuthContext.jsx
β”‚       β”œβ”€β”€ hooks/
β”‚       β”‚   └── useWebSocket.js
β”‚       β”œβ”€β”€ layouts/
β”‚       β”‚   └── DashboardLayout.jsx
β”‚       β”œβ”€β”€ pages/
β”‚       β”‚   β”œβ”€β”€ CreateResource.jsx
β”‚       β”‚   β”œβ”€β”€ Dashboard.jsx
β”‚       β”‚   β”œβ”€β”€ FilterPage.jsx
β”‚       β”‚   β”œβ”€β”€ LandingPage.jsx
β”‚       β”‚   β”œβ”€β”€ LoginPage.jsx
β”‚       β”‚   └── ResourceDetail.jsx
β”‚       β”œβ”€β”€ routes/
β”‚       β”‚   └── AppRoutes.jsx
β”‚       β”œβ”€β”€ services/
β”‚       β”‚   β”œβ”€β”€ api.js
β”‚       β”‚   └── resources.js
β”‚       └── utils/
β”‚           β”œβ”€β”€ constants.js
β”‚           └── validators.js

β”œβ”€β”€ Backend/
β”‚   β”œβ”€β”€ package.json
β”‚   └── src/
β”‚       β”œβ”€β”€ app.js
β”‚       β”œβ”€β”€ server.js
β”‚       β”œβ”€β”€ config/
β”‚       β”‚   └── db.js
β”‚       β”œβ”€β”€ controllers/
β”‚       β”‚   β”œβ”€β”€ allocationController.js
β”‚       β”‚   β”œβ”€β”€ authController.js
β”‚       β”‚   β”œβ”€β”€ healthController.js
β”‚       β”‚   β”œβ”€β”€ reportController.js
β”‚       β”‚   β”œβ”€β”€ requestController.js
β”‚       β”‚   └── resourceController.js
β”‚       β”œβ”€β”€ middleware/
β”‚       β”‚   β”œβ”€β”€ authMiddleware.js
β”‚       β”‚   └── errorMiddleware.js
β”‚       β”œβ”€β”€ models/
β”‚       β”‚   β”œβ”€β”€ Request.js
β”‚       β”‚   β”œβ”€β”€ Resource.js
β”‚       β”‚   └── User.js
β”‚       β”œβ”€β”€ routes/
β”‚       β”‚   β”œβ”€β”€ allocationRoutes.js
β”‚       β”‚   β”œβ”€β”€ authRoutes.js
β”‚       β”‚   β”œβ”€β”€ healthRoutes.js
β”‚       β”‚   β”œβ”€β”€ reportRoutes.js
β”‚       β”‚   β”œβ”€β”€ requestRoutes.js
β”‚       β”‚   └── resourceRoutes.js
β”‚       └── utils/
β”‚           └── resourceValidation.js

└── README.md

πŸ”§ Quick Setup (PowerShell)

  1. Clone the repo
git clone https://github.com/coder-Yash886/ResQMap.git; cd "ResQMap"
  1. Frontend
cd Frontend; npm install; npm run dev
  1. Backend
cd Backend; npm install
# create a .env file (example below)
# development: npm run dev  (uses nodemon)
npm run dev
# or: npm start

Backend/.env example

MONGO_URI=your_mongo_connection_string
JWT_SECRET=replace_with_a_strong_secret
PORT=5000

If you want, I can add a Backend/.env.example file to the repository and update Frontend/src/services/api.js with an environment-based API URL. Let me know which additional details you want included.