How nirthyathara/audiary works
Audiary is a mobile audio-and-written diary app backed by an Express API and MongoDB. The principal documented workflow is a mobile user creating or uploading journal entries, then retrieving and managing them; the available tree exposes the backend, but not the frontend implementation. The graph therefore treats the mobile app as an external client and preserves documented capabilities such as authentication, profiles, diary locking, and audio uploads. Several backend relationships are shown from excerpts or the source index; frontend internals and some integrations are not present in the supplied files.
Main entry points: app.js API app · authController.js Authentication · diaryController.js Diary operations · audioRoutes.js Audio routes
Components 21
API runtime
- HTTP server
backend/server.js - API app
backend/app.js
Identity and profile
- Auth routes
backend/src/routes/authRoutes.js - Authentication
backend/src/controllers/authController.js - Profile routes
backend/src/routes/userRoutes.js - Profile updates
backend/src/controllers/profileUpdate.js
Journal entries
- Diary routes
backend/src/routes/diaryRoutes.js - Diary operations
backend/src/controllers/diaryController.js - Entry encryption
backend/src/utils/encryption.js - Audio routes
backend/src/routes/audioRoutes.js - Audio operations
backend/src/controllers/audioController.js - Upload handler
backend/src/middleware/upload.js
Persistence and files
- User records
backend/src/models/User.js - Diary records
backend/src/models/Diary.js - Audio records
backend/src/models/Audio.js - DB connector
backend/src/config/db.js
Other components
- Mobile app
- MongoDB
- Audio files
- Email service
- Google identity
Connections 21
- Mobile app → API app: uses API
README.md - HTTP server → DB connector: connects
backend/server.js - HTTP server → API app: starts
backend/server.js - API app → Auth routes: mounts
backend/app.js - API app → Diary routes: mounts
backend/app.js - API app → Audio routes: mounts
backend/app.js - API app → Profile routes: mounts
backend/app.js - Auth routes → Authentication: dispatches
backend/src/routes/authRoutes.js - Authentication → User records: reads and writes
backend/src/controllers/authController.js - Authentication → Email service: sends reset code
backend/src/controllers/authController.js - Authentication → Google identity: verifies identity
backend/src/controllers/authController.js - Profile routes → Profile updates: dispatches
backend/src/routes/userRoutes.js - Profile updates → User records: updates
backend/src/controllers/profileUpdate.js - Diary routes → Diary operations: dispatches
backend/src/routes/diaryRoutes.js - Diary operations → Diary records: reads and writes
backend/src/controllers/diaryController.js - Diary operations → Entry encryption: encrypts entries
backend/src/controllers/diaryController.js - Audio routes → Upload handler: handles uploads
backend/src/routes/audioRoutes.js - Audio routes → Audio operations: dispatches
backend/src/routes/audioRoutes.js - Audio operations → Audio records: reads and writes
backend/src/controllers/audioController.js - Audio operations → Audio files: stores and deletes files
backend/src/controllers/audioController.js - DB connector → MongoDB: connects
README.md