Suraksha is a personal safety application designed to help users feel secure by providing real-time monitoring and emergency alert services. The Website allows users to quickly notify their emergency contacts with their current location in case of danger.
- User Account Management: Simple sign-up and login process
- Emergency Contacts: Store primary and secondary emergency contacts
- Alert System: Send alerts with different risk levels (Low, Medium, High)
- Location Tracking: Option to include real-time location data with alerts
- Alert History: Track all previous safety alerts in one place
- Responsive Design: Works seamlessly on both mobile and desktop devices
- Frontend: HTML, CSS (Tailwind CSS), JavaScript (jQuery)
- UI Components: Font Awesome for icons
- Styling: Modern glass-morphism UI with gradient accents
- Notifications: Custom toast notifications
- Location Services: Browser Geolocation API
- Data Storage: Local storage for user session management
- Web server environment (Apache, Nginx, etc.)
- Backend API server (separate repository)
- Clone the repository:
git clone [https://github.com/Srishyl/Suraksha-The-Safety-Guardian]
cd suraksha-safety-app-
Open
index.htmlin your browser or deploy to a web server. -
Configure the backend API endpoints in the AJAX calls if necessary.
- Click "Sign Up" to create a new account
- Enter your personal details
- Set up your emergency contacts
- You're ready to use the alert system
- Press the "ALERT NOW" button
- Select the appropriate risk level
- Choose whether to include your location
- Press "Send Alert" to notify your emergency contacts
The frontend makes calls to the following API endpoints:
- POST /login: User authentication
- POST /register: New user registration
- POST /contacts: Save emergency contacts
- GET /api/contacts: Retrieve user's emergency contacts
- POST /api/alert: Create a new alert
- GET /api/alerts: Retrieve user's alert history
- POST /api/refresh-token: Refresh authentication token
- Pull-to-refresh functionality for alert history
- Vibration feedback on alert button (when supported)
- Adaptive UI elements optimized for touch interfaces
- Offline detection with appropriate user notifications
- Token-based authentication
- Token expiry and refresh mechanism
- No storage of raw passwords
- Session management
- Push notifications for alerts
- Voice-activated emergency mode
- Integration with emergency services
- Advanced location tracking with journey sharing
- Custom emergency protocols
- Geofencing safety zones
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Font Awesome for icons
- Tailwind CSS for styling
- The browser Geolocation API
- All contributors who have helped enhance this safety application
Project Link: https://github.com/Srishyl/Suraksha-The-Safety-Guardian