How goen237/secure-file-sharing works
Secure File Sharing is a browser-based file-sharing application backed by FastAPI and MongoDB. Users register or log in, then upload files for envelope encryption and can list, preview, download, or delete their own files; administrators can manage users, roles, and files. The API routes these operations and delegates authentication, encryption, and persistence to backend modules. The README documents the frontend/API relationship and major capabilities; source excerpts show the specific calls and browser requests represented below.
Main entry points: main.py FastAPI routes · index.html User pages · script.js User actions · admin.html Admin dashboard
Components 17
Browser client
- User pages
frontend/index.html - User actions
frontend/script.js - Admin dashboard
frontend/admin.html - Admin actions
frontend/admin.js
Accounts and access
- FastAPI routes
backend/main.py - Registration and login
backend/main.py - Token and role checks
backend/main.py - User administration
backend/main.py - Password change
backend/main.py
File workflows
- Upload and encrypt
backend/main.py - List, preview, download
backend/main.py - File deletion
backend/main.py
Security and storage
- Password and JWT
backend/auth.py - Envelope encryption
backend/encryption.py - MongoDB operations
backend/db.py
Other components
- User or admin
- MongoDB
Connections 17
- User or admin → User pages: uses
README.md - User or admin → Admin dashboard: uses
README.md - User pages → User actions: loads
- Admin dashboard → Admin actions: loads
- User actions → FastAPI routes: sends REST requests
frontend/script.js - Admin actions → FastAPI routes: sends REST requests
frontend/admin.js - FastAPI routes → Registration and login: routes
backend/main.py - FastAPI routes → Token and role checks: routes
backend/main.py - FastAPI routes → User administration: routes
backend/main.py - FastAPI routes → Upload and encrypt: routes
backend/main.py - FastAPI routes → List, preview, download: routes
backend/main.py - FastAPI routes → File deletion: routes
backend/main.py - FastAPI routes → Password change: routes
backend/main.py - FastAPI routes → Password and JWT: calls
backend/main.py - FastAPI routes → Envelope encryption: encrypts and decrypts
backend/main.py - FastAPI routes → MongoDB operations: calls
backend/main.py - MongoDB operations → MongoDB: reads and writes
backend/db.py