premwizard/Smart-Tourist-Safety-Monitoring-Incident-Response-System
GitHub: premwizard/Smart-Tourist-Safety-Monitoring-Incident-Response-System
Stars: 0 | Forks: 0
# Smart Tourist Safety Monitoring
A full-stack safety app for tourists that combines real-time location tracking, danger zone monitoring, incident reporting, and AI-powered safety scores.
## Overview
This repository includes:
## Key Features
- Real-time geolocation tracking
- Danger zone geofencing and alerts
- Incident reporting and status updates
- AI safety scoring using Google Gemini
- User authentication and role-based admin access
- Interactive map dashboard with markers and zones
## Tech Stack
- Backend: Python, Flask, PyMongo, Flask-CORS
- Frontend: React, Vite, Axios, Google Maps JavaScript API
- Database: MongoDB Atlas or local MongoDB
- AI: Google Gemini API
## Repository Structure
.
+-- smart-tourist-backend/
¦ +-- app.py
¦ +-- requirements.txt
¦ +-- routes/
¦ +-- models/
¦ +-- utils/
¦ +-- README.md
+-- smart-tourist-frontend/
¦ +-- index.html
¦ +-- package.json
¦ +-- src/
¦ +-- README.md
+-- .gitignore
+-- README.md
## Quick Start
### Backend
cd "d:\Projects\GEO LOCATION\smart-tourist-backend"
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
Create `smart-tourist-backend/.env`:
MONGO_URI=mongodb+srv://USER:PASSWORD@cluster.mongodb.net/smart_tourist_db?retryWrites=true&w=majority
GEMINI_API_KEY=YOUR_GEMINI_API_KEY
Run the backend:
python app.py
### Frontend
cd "d:\Projects\GEO LOCATION\smart-tourist-frontend"
npm install
Create `smart-tourist-frontend/.env`:
VITE_GOOGLE_MAP_KEY=YOUR_GOOGLE_MAPS_API_KEY
VITE_BACKEND_URL=http://localhost:5000
Run the frontend:
npm run dev
Open the app at:
http://localhost:3000
## Environment Variables
### Backend
- `MONGO_URI` — MongoDB connection string
- `GEMINI_API_KEY` — Google Gemini API key
### Frontend
- `VITE_GOOGLE_MAP_KEY` — Google Maps API key
- `VITE_BACKEND_URL` — Backend URL
## Notes
- Do not commit `.env` files or API keys
- Use `smart-tourist-backend/README.md` and `smart-tourist-frontend/README.md` for subproject details
- This repo is ready for GitHub upload with a root `.gitignore`
## Cleanup Summary
- Removed obsolete file: `AUTH_AND_DASHBOARD_COMPLETE.md`
- Removed unused helper: `registerUserOld` in `smart-tourist-frontend/src/api.js`
- Added a root `.gitignore`
- Optimized the root `README.md` for GitHub
@'
标签:自定义脚本