How orbrener1/drive-part-5 works
Drive Me Nuts is a multi-client file-storage application: web and mobile users authenticate and manage files through the Node.js REST API, which coordinates application metadata and permissions with physical file operations on the C++ storage server. The main workflow covers browsing, creating, viewing, moving, searching, sharing, and managing files, with supporting starred, recent, and bin views. The README establishes the major system boundaries; source evidence is strongest for the Node.js file service and C++ request dispatch, so unsampled client and backend subsystems are shown at directory-level where appropriate.
Main entry points: filesService.js File Domain Service · files.js File and Search Routes · router.js Web Routes · FilesController.js File Operations
Components 25
React Web Client
- Web Routes
react-front/src/router.js - Web Authentication
react-front/src/context/AuthContext.jsx - Web File Workflows
react-front/src/pages/FilesPage/FilesPage.jsx - Web API Client
react-front/src/api/apiClient.js
React Native Client
- Mobile Screens
react-native-app/src/screens - Mobile File Actions
react-native-app/src/hooks/useFileActions.js - Mobile Authentication
react-native-app/src/context/AuthContext.jsx - Mobile API
react-native-app/src/api/filesApi.js
Node.js Backend
- REST API
NodeJS-server/src/app.js - File and Search Routes
NodeJS-server/src/mongoRoutes/files.js - Token Authentication
NodeJS-server/src/mongoServices/authService.js - File Operations
NodeJS-server/src/mongoControllers/FilesController.js - File Domain Service
NodeJS-server/src/services/filesService.js - File Metadata Repository
NodeJS-server/src/mongoRepository/mongoFileRepository.js - Permissions and Sharing
NodeJS-server/src/mongoControllers/permissionsController.js - Search
NodeJS-server/src/mongoControllers/searchController.js - User Services
NodeJS-server/src/mongoServices/userService.js - Bin, Recent, Stars
NodeJS-server/src/mongoServices - Storage Protocol Client
NodeJS-server/src/services/cppClientService.js
C++ Storage Server
- Socket Command Handler
cpp-server/src/server/SocketClientHandler.cpp - Storage Commands
cpp-server/src/commands - Local File Storage
cpp-server/src/storage/LocalFileManager.cpp - Binary Compression
cpp-server/src/compression
Other components
- Browser User
- Mobile User
Connections 27
- Browser User → Web Routes: uses
README.md - Web Routes → Web Authentication: checks session
react-front/src/router.js - Web Routes → Web File Workflows: routes to
react-front/src/router.js - Web File Workflows → Web API Client: requests data
- Web Authentication → Web API Client: auth requests
react-front/src/context/AuthContext.jsx - Web API Client → REST API: calls REST API
README.md - Mobile User → Mobile Screens: uses
README.md - Mobile Screens → Mobile File Actions: uses actions
- Mobile File Actions → Mobile API: calls
react-native-app/src/hooks/useFileActions.js - Mobile Authentication → Mobile API: auth requests
- Mobile API → REST API: calls REST API
README.md - REST API → File and Search Routes: mounts routes
NodeJS-server/src/app.js - File and Search Routes → Token Authentication: protects routes
NodeJS-server/src/mongoRoutes/files.js - File and Search Routes → File Operations: dispatches requests
NodeJS-server/src/mongoRoutes/files.js - File Operations → File Domain Service: calls
NodeJS-server/src/mongoControllers/FilesController.js - File Domain Service → File Metadata Repository: reads and writes
NodeJS-server/src/services/filesService.js - File Domain Service → Storage Protocol Client: requests file I/O
NodeJS-server/src/services/filesService.js - File Operations → Permissions and Sharing: permission endpoints
- Permissions and Sharing → File Domain Service: checks access
NodeJS-server/src/mongoControllers/permissionsController.js - Permissions and Sharing → User Services: resolves users
NodeJS-server/src/mongoControllers/permissionsController.js - File and Search Routes → Search: routes search
- Search → File Domain Service: searches files
- File Domain Service → Bin, Recent, Stars: manages file state
NodeJS-server/src/services/filesService.js - Storage Protocol Client → Socket Command Handler: sends commands
- Socket Command Handler → Storage Commands: dispatches commands
cpp-server/src/server/SocketClientHandler.cpp - Storage Commands → Local File Storage: performs file I/O
- Local File Storage → Binary Compression: uses strategy