How aswin-ar5055/gdrive-lite works
gdrive-lite is a Flask cloud-storage application. Users register or log in, then manage files from a dashboard: upload and download, move files to trash, restore or permanently delete them, and use sharing, favourites, profile customization, storage usage, and multilingual UI. Flask route handlers coordinate PostgreSQL metadata and S3 objects; templates and browser scripts provide the interface, including voice commands. The source excerpts show key dashboard, profile, favourites, trash, and storage interactions; other feature relationships are included where the README documents them.
Main entry points: __init__.py Flask app · file_utils.py S3 helpers · profile.py User profile · dashboard.py Dashboard
Components 20
Web application
- Flask app
routes/__init__.py - Translations
translations.py - Page templates
templates - Browser UI and voice
static
File management
- Dashboard
routes/dashboard.py - File upload
routes/upload.py - File download
routes/download.py - Trash listing
routes/trash.py - Trash and restore
routes/trash_del_restore.py - Bulk file actions
routes/del_restore_permadelete.py - File sharing
routes/share.py - ZIP downloads
routes/zip.py
Accounts and preferences
- Registration and login
routes - Favourites
routes/favourites.py - User profile
routes/profile.py
Data and storage
- S3 helpers
file_utils.py - Amazon S3
- Database access and schema
db_schema.py - PostgreSQL
Other components
- User
Connections 42
- User → Flask app: uses
README.md - Flask app → Registration and login: registers routes
routes/__init__.py - Flask app → Dashboard: registers routes
routes/__init__.py - Flask app → File upload: registers routes
routes/__init__.py - Flask app → File download: registers routes
routes/__init__.py - Flask app → Trash listing: registers routes
routes/__init__.py - Flask app → Trash and restore: registers routes
routes/__init__.py - Flask app → Bulk file actions: registers routes
routes/__init__.py - Flask app → File sharing: registers routes
routes/__init__.py - Flask app → ZIP downloads: registers routes
routes/__init__.py - Flask app → Favourites: registers routes
routes/__init__.py - Flask app → User profile: registers routes
routes/__init__.py - Dashboard → S3 helpers: gets storage info
routes/dashboard.py - Dashboard → Amazon S3: lists user files
routes/dashboard.py - Dashboard → User profile: gets profile
routes/dashboard.py - Dashboard → Favourites: gets favourites
routes/dashboard.py - Dashboard → Translations: gets translations
routes/dashboard.py - Dashboard → Page templates: renders dashboard
routes/dashboard.py - File upload → S3 helpers: uses S3 helpers
routes/upload.py - File download → S3 helpers: uses S3 helpers
routes/download.py - Trash listing → Amazon S3: lists trash objects
routes/trash.py - Trash listing → User profile: gets profile
routes/trash.py - Trash listing → S3 helpers: gets storage info
routes/trash.py - Trash and restore → S3 helpers: uses S3 helpers
routes/trash_del_restore.py - Bulk file actions → S3 helpers: uses S3 helpers
routes/del_restore_permadelete.py - File sharing → S3 helpers: uses S3 helpers
routes/share.py - ZIP downloads → S3 helpers: uses S3 helpers
routes/zip.py - Favourites → Database access and schema: reads and updates
routes/favourites.py - Favourites → Amazon S3: checks file objects
routes/favourites.py - Favourites → User profile: gets profile
routes/favourites.py - Favourites → S3 helpers: gets storage info
routes/favourites.py - Favourites → Translations: gets translations
routes/favourites.py - User profile → Database access and schema: reads and updates
routes/profile.py - User profile → S3 helpers: gets S3 client
routes/profile.py - User profile → Amazon S3: stores profile pictures
routes/profile.py - User profile → Translations: gets translations
routes/profile.py - S3 helpers → Amazon S3: lists and measures
file_utils.py - Database access and schema → PostgreSQL: connects and initializes
db_schema.py - Registration and login → Database access and schema: uses account records
routes/login.py - Registration and login → Database access and schema: uses account records
routes/register.py - User → Browser UI and voice: uses voice commands
README.md - Browser UI and voice → Flask app: requests app actions