Skip to content

Siddhi259/EmoShield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘ EmoShield

Centralized Emotion-Aware Multi-Platform Cyber Threat Detection System
AI Β· NLP Β· Computer Vision Β· Face Emotion Analysis

Python FastAPI React MongoDB


πŸ“ Complete Git Repository Structure

emoshield/                          ← ROOT of GitHub repo
β”‚
β”œβ”€β”€ README.md                       ← This file
β”œβ”€β”€ .gitignore                      ← Files to ignore
β”‚
β”œβ”€β”€ backend/                        ← Python FastAPI server
β”‚   β”œβ”€β”€ main.py                     ← App entry point + all routes
β”‚   β”œβ”€β”€ requirements.txt            ← All Python packages
β”‚   β”œβ”€β”€ .env.example                ← Copy to .env and fill keys
β”‚   β”œβ”€β”€ Procfile                    ← For Render deployment
β”‚   └── src/
β”‚       β”œβ”€β”€ auth/
β”‚       β”‚   β”œβ”€β”€ __init__.py
β”‚       β”‚   β”œβ”€β”€ jwt_handler.py      ← JWT token create/verify
β”‚       β”‚   β”œβ”€β”€ google_auth.py      ← Google OAuth login
β”‚       β”‚   └── otp_service.py      ← SMS OTP via Twilio
β”‚       β”œβ”€β”€ analyzers/
β”‚       β”‚   β”œβ”€β”€ __init__.py
β”‚       β”‚   β”œβ”€β”€ threat_analyzer.py  ← NLP + ML engine (core)
β”‚       β”‚   └── face_analyzer.py    ← Face emotion detection
β”‚       β”œβ”€β”€ integrations/
β”‚       β”‚   β”œβ”€β”€ __init__.py
β”‚       β”‚   β”œβ”€β”€ gmail_integration.py       ← Gmail API
β”‚       β”‚   └── platform_integrations.py  ← WhatsApp + Instagram + SMS
β”‚       β”œβ”€β”€ models/
β”‚       β”‚   β”œβ”€β”€ __init__.py
β”‚       β”‚   └── database.py         ← MongoDB connection + schemas
β”‚       └── utils/
β”‚           β”œβ”€β”€ __init__.py
β”‚           β”œβ”€β”€ config.py           ← Settings from .env
β”‚           └── encryption.py      ← AES-256 token encryption
β”‚
β”œβ”€β”€ frontend/                       ← React + Vite + Tailwind
β”‚   β”œβ”€β”€ index.html
β”‚   β”œβ”€β”€ package.json
β”‚   β”œβ”€β”€ vite.config.js
β”‚   β”œβ”€β”€ tailwind.config.js
β”‚   β”œβ”€β”€ postcss.config.js
β”‚   β”œβ”€β”€ .env.example
β”‚   └── src/
β”‚       β”œβ”€β”€ main.jsx                ← React entry point
β”‚       β”œβ”€β”€ App.jsx                 ← Routes
β”‚       β”œβ”€β”€ styles/
β”‚       β”‚   └── globals.css         ← Tailwind + custom styles
β”‚       β”œβ”€β”€ utils/
β”‚       β”‚   └── api.js              ← Axios client + all API calls
β”‚       β”œβ”€β”€ hooks/
β”‚       β”‚   └── useAuth.jsx         ← Auth context (global state)
β”‚       β”œβ”€β”€ components/
β”‚       β”‚   └── common/
β”‚       β”‚       └── Layout.jsx      ← Sidebar + header wrapper
β”‚       └── pages/
β”‚           β”œβ”€β”€ LoginPage.jsx       ← Google sign in
β”‚           β”œβ”€β”€ AuthCallback.jsx    ← OAuth redirect handler
β”‚           β”œβ”€β”€ DashboardPage.jsx   ← Home with stats + charts
β”‚           β”œβ”€β”€ ScanPage.jsx        ← Message + face dual scan
β”‚           β”œβ”€β”€ GmailPage.jsx       ← Gmail inbox monitor
β”‚           β”œβ”€β”€ PlatformsPage.jsx   ← Connect accounts + OTP
β”‚           β”œβ”€β”€ HistoryPage.jsx     ← Past scans
β”‚           β”œβ”€β”€ AnalyticsPage.jsx   ← Charts + insights
β”‚           └── SettingsPage.jsx    ← User preferences
β”‚
└── docs/
    β”œβ”€β”€ setup_guide.md             ← API keys setup guide
    └── deployment.md              ← Render + Vercel deploy guide

🌐 Deployment

Service What to deploy Cost
Render.com Backend (FastAPI)
Vercel.com Frontend (React)
MongoDB Atlas Database

See docs/deployment.md for step-by-step instructions.


πŸ”‘ Required API Keys

Key Get From Required?
Google Client ID + Secret console.cloud.google.com
MongoDB Connection URL cloud.mongodb.com
JWT Secret Key Any random 32+ char string
Twilio (SMS OTP) twilio.com Optional
Instagram App developers.facebook.com
WhatsApp Business developers.facebook.com

EmoShield v1.0 β€” Final Year Project | CSE 2025–26

About

πŸ›‘ EmoShield β€” Centralized Emotion-Aware Multi-Platform Cyber Threat Detection System using AI, NLP, and Computer Vision

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors