Skip to content

Latest commit

Β 

History

53 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🚨 ResQLink

Connecting Lives During Emergencies

A smart emergency response & digital healthcare ecosystem that unites citizens, doctors, hospitals, blood donors, ambulances, police, fire departments, NGOs and rescue teams on one real-time platform β€” before, during, and after every emergency.

React TypeScript Tailwind CSS Spring Boot Java PostgreSQL


✨ Highlights

  • πŸ†˜ Smart SOS β€” one-tap emergency alerts with GPS, live timeline and responder dispatch
  • πŸͺͺ Smart Medical ID β€” QR-powered digital identity that speaks for you when you can't
  • 🩸 Blood Donation Network β€” matching donors nearby in minutes, not hours
  • 🩺 Telemedicine β€” HD video consultations, digital prescriptions, emergency doctors
  • πŸ“‘ LoRa Offline Mesh β€” ESP32 + LoRa SX1278 hardware keeps SOS alive without internet
  • πŸ‘¨β€πŸ‘©β€πŸ‘§ Family Safety β€” live location sharing, safe check-ins, instant alerts
  • 🎨 Premium UI β€” glassmorphism, Framer Motion animations, dark/light/system themes

πŸ—οΈ Architecture

resqlink/
β”œβ”€β”€ frontend/          React 19 Β· TypeScript Β· Vite Β· Tailwind CSS v4
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/    UI primitives, effects, layout, theme
β”‚   β”‚   β”œβ”€β”€ features/      Feature modules (auth, ...)
β”‚   β”‚   β”œβ”€β”€ pages/         Route pages (landing, auth, dashboard)
β”‚   β”‚   └── lib/           API client, utils, motion presets
β”‚   └── ...
β”œβ”€β”€ backend/           Java 21 Β· Spring Boot 3 Β· Spring Security Β· JWT Β· PostgreSQL
β”‚   └── src/main/java/com/resqlink/api/
β”‚       β”œβ”€β”€ auth/          Register, login, refresh (JWT)
β”‚       β”œβ”€β”€ user/          User entity, roles, profile
β”‚       β”œβ”€β”€ security/      JWT service + authentication filter
β”‚       β”œβ”€β”€ config/        Security & application config
β”‚       └── common/        Health check, global error handling
└── docker-compose.yml PostgreSQL 16 for local development

πŸš€ Getting Started

Prerequisites

Tool Version
Node.js 20+
Java (JDK) 21+
Maven 3.9+
PostgreSQL 16+ (or Docker)

1 Β· Database

Option A β€” Docker (recommended):

docker compose up -d

Option B β€” Local PostgreSQL: create a database and user matching backend/src/main/resources/application.yml:

CREATE USER resqlink WITH PASSWORD 'resqlink';
CREATE DATABASE resqlink OWNER resqlink;

2 Β· Backend

cd backend
mvn spring-boot:run

API starts at http://localhost:8080.

3 Β· Frontend

cd frontend
npm install
npm run dev

App starts at http://localhost:5173 (API requests are proxied to the backend).

πŸ”Œ API (Module 1 β€” Authentication)

Method Endpoint Auth Description
GET /api/v1/health β€” Service health check
POST /api/v1/auth/register β€” Create account, returns JWT pair
POST /api/v1/auth/login β€” Sign in, returns JWT pair
POST /api/v1/auth/refresh β€” Rotate tokens with a refresh token
GET /api/v1/users/me πŸ”’ Bearer Current user profile

Quick test:

curl -X POST http://localhost:8080/api/v1/auth/register \
  -H "Content-Type: application/json" \
  -d '{"fullName":"Test User","email":"test@resqlink.dev","password":"password123"}'

βš™οΈ Environment Variables

Variable Default Description
DB_URL jdbc:postgresql://localhost:5432/resqlink PostgreSQL JDBC URL
DB_USERNAME resqlink Database user
DB_PASSWORD resqlink Database password
JWT_SECRET dev secret (change in prod!) Base64 HMAC signing key
CORS_ALLOWED_ORIGINS http://localhost:5173 Comma-separated origins
ADMIN_EMAIL admin@resqlink.dev Seeded admin account email
ADMIN_PASSWORD admin12345 Seeded admin password (dev only)

πŸ—ΊοΈ Roadmap

  • Phase 1 β€” Foundation: design system, landing page, JWT authentication
  • Phase 2 β€” User profiles, Smart Medical ID (QR) & emergency contacts
  • Phase 3 β€” Smart SOS: countdown trigger, GPS, live timeline, history
  • Phase 4 β€” Blood network: donor search with compatibility, requests, donor card
  • Phase 5 β€” Command-center dashboard: live stats, Recharts analytics
  • Phase 6 β€” First Aid Center: 9 step-by-step emergency guides
  • Phase 7 β€” Hospital directory: search, emergency depts, blood banks, ratings
  • Phase 8 β€” Family Safety: groups with invite codes, safe check-ins
  • Phase 9 β€” Admin panel: platform stats, user management (role-gated)
  • Phase 10 β€” Telemedicine, AI Emergency Assistant, notifications, disaster alerts, achievements
  • Future β€” FCM push, WebRTC video calls, LoRa/ESP32 offline mesh hardware

🧰 Tech Stack

Frontend: React 19, TypeScript, Vite, Tailwind CSS v4, Framer Motion, React Router, TanStack Query, React Hook Form, Zod, Axios, Recharts, next-themes, Lucide Icons

Backend: Java 21, Spring Boot 3.5, Spring Security, Spring Data JPA, PostgreSQL, JJWT

Hardware (planned): ESP32, LoRa SX1278, GPS NEO-6M


Built with ❀️ to save lives · ResQLink

About

🚨 ResQLink β€” Smart Emergency Response & Digital Healthcare Ecosystem. React 19 + Spring Boot 3 + PostgreSQL.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages