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.
- π 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
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
| Tool | Version |
|---|---|
| Node.js | 20+ |
| Java (JDK) | 21+ |
| Maven | 3.9+ |
| PostgreSQL | 16+ (or Docker) |
Option A β Docker (recommended):
docker compose up -dOption 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;cd backend
mvn spring-boot:runAPI starts at http://localhost:8080.
cd frontend
npm install
npm run devApp starts at http://localhost:5173 (API requests are proxied to the backend).
| 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"}'| 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) |
- 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
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