In this refactoring, we have removed the notes feature from the server side of the application. The notes feature was part of an older version of the app but is no longer needed.
/src/api/notes.api.ts: API endpoints for notes/src/services/notes.service.ts: Service layer for notes
-
Database Models
- Removed Note schema from
db.models.ts - Removed NoteDocument interface
- Removed Note schema from
-
Database Service
- Removed all note-related methods from
database.service.ts - Removed note import and conversion functions
- Removed all note-related methods from
-
Recordings API
- Removed
/:id/notesendpoint fromrecordings.api.ts
- Removed
-
Recordings Service
- Removed
createNoteFromRecordingmethod fromrecordings.service.ts - Removed NoteI import
- Removed
-
In-Memory Store
- Removed notes collection and all note operations
- Updated exports to only include recordings
/src/types/notes.types.ts: Left for potential frontend references
We have also integrated MongoDB for metadata storage and Cloudflare R2 for file storage.
- Created schemas and models for recordings
- Implemented database service with CRUD operations
- Added fallback to in-memory store when database is unavailable
- Enhanced storage service to support Cloudflare R2
- Implemented dual storage (local filesystem + R2)
- Added configuration options via environment variables
- Added API endpoint for updating recordings (rename)
- Enhanced error handling and logging
- Added environment variables for MongoDB and R2 configuration
- Updated documentation with setup instructions