InSafe Digital Shield is a state-of-the-art safety and emergency response platform designed to provide immediate assistance and peace of mind. Whether it's a medical emergency, a lost item, or a personal safety threat, InSafe provides the tools to alert the right people at the right time.
- 🚨 One-Tap SOS: Instantly notify emergency contacts and authorities with your real-time location.
- 📍 Real-Time Tracking: Live location sharing with trusted contacts during emergencies.
- 🏥 Medical Help: Quick access to medical assistance and emergency services.
- 🔍 Lost & Found: A dedicated portal for reporting and finding lost items within the community.
- 👥 Safety Network: Manage your emergency contacts and groups easily.
- 🛡️ Admin Dashboard: Comprehensive monitoring and management for system administrators.
- 🎨 Premium UI/UX: Clean, modern, and intuitive interface built with Shadcn/UI and Tailwind CSS.
- Framework: React 18 (Vite)
- Language: TypeScript
- Styling: Tailwind CSS, Shadcn/UI
- State Management: TanStack Query (React Query)
- Routing: React Router Dom
- Icons: Lucide React
- Animations: Framer Motion / Tailwind Animate
- Runtime: Node.js
- Framework: Express.js
- Database: MongoDB (via Mongoose)
- Authentication: Firebase Auth (Google Sign-In)
- API Styling: RESTful
- Bundler: Vite
- Package Manager: NPM / Bun
- Real-time Engine: Firebase Realtime Database
.
├── server/ # Express backend
│ ├── config/ # Database & other configurations
│ ├── models/ # Mongoose schemas
│ ├── routes/ # API entry points
│ └── index.ts # Server entry point
├── src/ # React frontend
│ ├── components/ # Reusable UI components (Shadcn/UI)
│ ├── firebase/ # Firebase configuration & helpers
│ ├── pages/ # Main application views/pages
│ ├── lib/ # Utility functions & shared logic
│ ├── App.tsx # Main App component & Routes
│ └── main.tsx # Frontend entry point
├── public/ # Static assets
└── package.json # Dependencies and scripts
- Node.js (v18+)
- MongoDB (Local or Atlas)
- Firebase account
-
Clone the repository:
git clone https://github.com/YourUsername/insafe-digital-shield.git cd insafe-digital-shield -
Install dependencies:
npm install
-
Environment Setup: Create a
.envfile in the root directory and add the following:MONGODB_URI=your_mongodb_connection_string PORT=5001 # Firebase config (client side) VITE_FIREBASE_API_KEY=your_api_key ...
InSafe uses a concurrent setup to run both the frontend and backend with a single command.
-
Full Project (Frontend + Backend):
npm run dev:full
-
Frontend Only:
npm run dev
-
Backend Only:
npm run server
We welcome contributions! If you're new to the project, here's how you can help:
- Fork the project.
- Create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
Distributed under the MIT License. See LICENSE for more information.
Made with ❤️ for a safer community.