Smart Location Alarm is a web application developed using the MERN (MongoDB, Express.js, React.js, Node.js) stack. It allows users to set location-based alarms, which trigger notifications when they enter or leave specified geographical areas.
- Location-based Alarms: Users can set alarms based on geographical locations.
- Real-time Notifications: Receive notifications when entering or leaving predefined locations.
- Responsive Design: Works seamlessly across devices of all screen sizes.
- MongoDB: NoSQL database for storing user data and alarm settings.
- Express.js: Backend framework for building the RESTful API.
- React.js: Frontend library for building user interfaces.
- Node.js: Server-side JavaScript runtime environment.
- Google Maps API: Integration for location services and geofencing.
- Bootstrap: Frontend framework for responsive design and UI components.
- Clone the repository:
- Navigate to the project directory:
- Install dependencies:
- Set up environment variables:
- Create a
.env
file in the root directory. - Define the following variables:
PORT=3000 MONGODB_URI=your_mongodb_uri JWT_SECRET=your_jwt_secret GOOGLE_MAPS_API_KEY=your_google_maps_api_key
- Start the development server:
- Access the application at
http://localhost:3000
.
- Sign up for an account or log in if you already have one.
- Create new alarms by specifying locations on the map.
- Receive real-time notifications when entering or leaving defined areas.
- View alarm history and manage existing alarms.