How shammas-satti-00/ai-powered-deepfake-detection-with-sentiment-analysis works
This is a video-analysis web application: users authenticate, upload videos, and receive deepfake and sentiment results saved with their video records for later review. The sampled backend shows Express routing and authorization, a Flask processing service, and model inference. The README also describes dashboards, detailed reports, charts, PDF export, and live status updates; frontend implementation files were not present in the supplied tree, so those capabilities are represented at the frontend-directory level. The contact route exists but is not shown mounted by the sampled server entry point.
Main entry points: videos.js Video routes · videoController.js Video operations · index.js Express server · auth.js Authentication routes
Components 18
API and access
- Express server
backend/src/index.js - Authentication routes
backend/src/routes/auth.js - Video routes
backend/src/routes/videos.js - Contact route
backend/src/routes/contactroutes.js - JWT authorization
backend/src/middleware/auth.js - Upload handling
backend/src/middleware/upload.js
Accounts and video records
- Account operations
backend/src/controllers/authController.js - User model
backend/src/models/User.js - Video operations
backend/src/controllers/videoController.js - Video model
backend/src/models/Video.js - Contact submission
backend/src/controllers/contactcontroller.js - Contact model
backend/src/models/contact.js - MongoDB and GridFS
AI analysis
- Flask processing API
backend/app.py - Sentiment inference
backend/Sentimentanalysis/inference.py - Deepfake inference
backend/Deepfakedetection/inference.py
User experience
- Web experience
frontend
Other components
- Video user
Connections 19
- Video user → Express server: uses API
README.md - Express server → Authentication routes: mounts
backend/src/index.js - Express server → Video routes: mounts
backend/src/index.js - Authentication routes → Account operations: dispatches
backend/src/routes/auth.js - Authentication routes → JWT authorization: protects profile
backend/src/routes/auth.js - Video routes → Video operations: dispatches
backend/src/routes/videos.js - Video routes → JWT authorization: protects routes
backend/src/routes/videos.js - Video routes → Upload handling: parses upload
backend/src/routes/videos.js - Account operations → User model: reads and saves
backend/src/controllers/authController.js - JWT authorization → User model: loads user
backend/src/middleware/auth.js - Video operations → Video model: reads and updates
backend/src/controllers/videoController.js - Video operations → MongoDB and GridFS: streams video files
backend/src/controllers/videoController.js - Video operations → Flask processing API: posts video
backend/src/controllers/videoController.js - Flask processing API → Sentiment inference: runs analysis
backend/app.py - Flask processing API → Deepfake inference: runs detection
backend/app.py - Contact route → Contact submission: dispatches
backend/src/routes/contactroutes.js - Contact submission → Contact model: saves submission
backend/src/controllers/contactcontroller.js - Web experience → Express server: calls API
README.md - Web experience → Video user: presents results
README.md