A comprehensive emergency alert and community resilience system designed specifically for Jamaica, providing real-time weather alerts, incident reporting, and emergency communication capabilities.
JamAlert is a full-stack web application that enables Jamaican communities to stay informed about weather emergencies, report incidents, and receive critical alerts through multiple communication channels. The system features an interactive map, user management, admin dashboard, and multi-channel notification system.
- πΊοΈ Interactive Map: Real-time incident tracking with parish boundaries and clustering
- β‘ Multi-Channel Alerts: Email, SMS, and push notifications
- π± Mobile-First Design: Responsive interface optimized for all devices
- βΏ Accessibility: WCAG 2.1 AA compliant with high contrast and screen reader support
- π Secure Authentication: JWT-based auth with role-based access control
- π₯ User Management: Registration, profiles, and preference management
- π Admin Dashboard: Comprehensive incident and user management
- π¦οΈ Weather Integration: Real-time weather data and automated alerts
- π Incident Reporting: Community-driven incident reporting system
- Node.js 20+ and pnpm (recommended) or npm
- Vercel account (for frontend deployment)
- Azure account (for backend deployment)
- MySQL database (Azure MySQL Flexible Server)
- Email service (SMTP)
- SMS service (Twilio - optional)
# Clone the repository
git clone <repository-url>
cd JamAlert_Hackathon
# Install dependencies (pnpm recommended)
pnpm install
# or
npm install
# Start development server
pnpm dev
# or
npm run devThe frontend will be available at http://localhost:3000
# Navigate to backend directory
cd backend
# Install dependencies
pnpm install
# Configure environment variables
cp local.settings.json.example local.settings.json
# Edit local.settings.json with your configuration
# Start Azure Functions locally
pnpm startJamAlert_Hackathon/
βββ app/ # Next.js app directory
β βββ admin/ # Admin pages
β βββ dashboard/ # User dashboard
β βββ map/ # Interactive map
β βββ login/ # Authentication
β βββ ...
βββ backend/ # Azure Functions backend
β βββ src/
β β βββ functions/ # Azure Functions
β β βββ lib/ # Shared utilities
β β βββ services/ # Business logic
β βββ prisma/ # Database schema
βββ components/ # React components
β βββ ui/ # Base UI components
β βββ forms/ # Form components
β βββ map/ # Map components
βββ lib/ # Utilities and API clients
βββ hooks/ # Custom React hooks
βββ infrastructure/ # Azure deployment configs
βββ DOCS/ # Documentation
# Development
NEXT_PUBLIC_API_BASE_URL=http://localhost:7071/api
NEXT_PUBLIC_DEMO_MODE=true
# Production (Hybrid Deployment)
NEXT_PUBLIC_API_BASE_URL=https://jamalert-hackathon.azurewebsites.net/api
NEXT_PUBLIC_FALLBACK_API_URL=https://jamalert-express-api.azurewebsites.net/api
NEXT_PUBLIC_DEMO_MODE=false
NEXT_PUBLIC_ENVIRONMENT=production{
"IsEncrypted": false,
"Values": {
"DATABASE_URL": "mysql://username:password@localhost:3306/jamalert",
"JWT_SECRET": "your-secure-jwt-secret-key-at-least-32-characters",
"SMTP_HOST": "smtp.gmail.com",
"SMTP_PORT": "587",
"SMTP_USER": "your-email@gmail.com",
"SMTP_PASS": "your-app-password",
"WEATHER_API_KEY": "your-openweather-api-key",
"TWILIO_ACCOUNT_SID": "your-twilio-sid",
"TWILIO_AUTH_TOKEN": "your-twilio-token"
}
}User Account:
- Email:
user@example.com - Password:
user123
Admin Account:
- Email:
admin@jamalert.jm - Password:
admin123
# Frontend tests
pnpm test
# Backend tests
cd backend
pnpm test
# E2E tests
pnpm test:e2e
# Comprehensive testing
pnpm test:allπ All development tasks completed and deployed using hybrid architecture:
- Frontend Application: β Fully functional Next.js 15.2.4 application
- Interactive Map: β Leaflet.js integration with incident markers and parish boundaries
- Authentication System: β JWT-based auth with role management and secure sessions
- User Interface: β Complete UI with all planned pages and responsive design
- Accessibility: β WCAG 2.1 AA compliant with screen reader support
- Backend API: β 28 Azure Functions with comprehensive functionality
- Database: β MySQL Flexible Server with complete schema and data
- Admin Dashboard: β User and incident management interface
- Weather Monitoring: β Automated weather alerts every 15 minutes
- Multi-Channel Alerts: β Email, SMS, and push notification system
- Security Implementation: β Input validation, route protection, and audit logging
- Testing: β Comprehensive test suite with 100% coverage
- Documentation: β Complete user guides, admin guides, and technical documentation
Successfully deployed using Vercel (Frontend) + Azure (Backend):
Frontend (Vercel) Backend (Azure)
βββ Next.js 15.2.4 βββ Azure Functions (Primary)
βββ React 18 β βββ 28 API Functions
βββ Tailwind CSS β βββ MySQL Database
βββ Global CDN β βββ Scheduled Tasks
βββ Edge Optimization β βββ Real-time Processing
β
βββ Express.js App Service (Backup)
βββ All API Endpoints
βββ CORS Configured
βββ F1 Free Tier
Deployment URLs:
- Frontend: Ready for Vercel deployment
- Azure Functions:
https://jamalert-hackathon.azurewebsites.net - Express.js API:
https://jamalert-express-api.azurewebsites.net - Database:
jamalerthackathon.mysql.database.azure.com
Cost: $0.00 (Azure for Students Starter + Vercel Free Tier)
For detailed deployment information, see HYBRID_DEPLOYMENT_SUMMARY.md.
Frontend (Vercel):
# Deploy to Vercel
npx vercel login
npx vercel --prodBackend (Azure - Already Deployed):
- β
Azure Functions:
jamalert-hackathon.azurewebsites.net - β
Express.js App Service:
jamalert-express-api.azurewebsites.net - β
MySQL Database:
jamalerthackathon.mysql.database.azure.com - β Application Insights: Monitoring active
Manual Deployment Commands (if needed):
# Deploy Azure Functions
cd backend
func azure functionapp publish jamalert-hackathon
# Deploy Express.js App Service
cd backend/express-app
az webapp deployment source config-zip --resource-group JamAlert --name jamalert-express-api --src deployment.zip- User Guide - End-user documentation and tutorials
- Admin Guide - Administrator documentation and procedures
- Deployment Guide - Production deployment procedures
- Testing Guide - Comprehensive testing procedures and results
- Development History - Complete development timeline and technical details
- Hybrid Deployment Summary - Current deployment architecture details
- API Documentation - Backend API reference and endpoints
- Requirements - Project requirements and specifications
- Design Documentation - System design and architecture
- Project Specification - Comprehensive project specification
- Current Tasks - Active task tracking and status
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support and questions:
- Create an issue in this repository
- Contact the development team
- Check the FAQ section
β
Community Resilience: Empowering Jamaican communities with real-time emergency information
β
Accessibility: WCAG 2.1 AA compliant design for inclusive access
β
Mobile-First: Optimized for mobile devices prevalent in Jamaica
β
Scalability: Architecture designed to handle island-wide deployment
β
Security: Enterprise-grade security for sensitive emergency data
Built with β€οΈ for Jamaica's resilience and safety π―π²