Kukunya (Cocooneer - To protect/shield) is a mobile application (aided by the government) designed to enhance personal safety (for their citizens) by quickly notifying nearby emergency services(within 0-5km), such as police stations and hospitals, in case of an emergency. The system integrates a mobile app, a backend server, and real-time location tracking to ensure prompt assistance.
Download app at https://expo.dev/artifacts/eas/h4GW4bKV9N8M6DwXtMeWxD.apk
Visit https://kukunya.vercel.app
Login with ID: rafce12
Password: lasuepehospital1
-
User Authentication:
- Users log in using their email and password.
- Upon successful login, users can access the app's features.
-
Real-Time Location Tracking:
- The app tracks the user's location using GPS.
- This information is critical for providing accurate emergency alerts.
-
Emergency Alerts:
- Users can send alerts to nearby police stations or hospitals by pressing a button.
- Alerts include the user's location and the type of emergency (police or medical).
-
WebSocket Communication:
- The app maintains a real-time connection with the server using WebSocket (socket.io).
- This ensures instant communication between the user and emergency services.
-
Feedback and Confirmation:
- Users receive confirmation messages when alerts are successfully sent.
- The app displays user location data and provides animated disclaimer text.
-
Frontend
- React Native for mobile app
- React Js for Web Frontend
-
Backend (Node.js with Express)
-
Database (MongoDB)
- User authentication (login)
- Real-time location tracking
- Sending emergency alerts
- Displaying user location
- Animated disclaimer text
- Clone the Repository:
git clone https://github.com/kukunya
cd ./myapp
- Install Dependencies:
npm install
- Start the App:
npm start
- User authentication (login)
- WebSocket server for real-time communication
- RESTful APIs for user and issue management
- Middleware for token validation
- Clone the Repository:
cd ./backend
- Install Dependencies:
npm install
-
Environment Variables:
- Create a .env file in the backend directory.
- Add the following environment variables:
APP_SK=your_secret_key // hello
MONGO_URI=your_mongodb_uri // mongodb+srv://mayowayusuf3004:5s9JnuyAjrJECvbj@cluster0.rgsv8es.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0
Start the Server:
npm start
- User login and authentication
- Display of user's current location
- Buttons to trigger emergency alerts
- Real-time communication with the backend server
- Display of confirmation messages and user information
- Install Dependencies:
npm install
- Start the App:
npm run dev
-
Login:
- Open the app and enter your email and password to log in.
- If login is successful, you will be navigated to the home screen.
-
Sending Alerts:
- On the home screen, you can see your current location.
- Press the "Alarm Police" button to send an alert to the nearest police station.
- Press the "Alarm Nearest Hospital" button to send an alert to the nearest hospital.
-
Confirmation:
- After sending an alert, you will receive a confirmation message. `- The app displays a disclaimer text warning against false alarms.
For any questions or further information, please contact:
Name: Yusuf Saubana Mayowa
Email: mayowayusuf3004@gmail.com