How abdulbaseer135/abdul-baseer-mern-10pshine works
This is a MERN notes application. Users sign up or log in, then manage notes from a searchable, sortable dashboard; they can also edit profiles and access publicly shared notes. The frontend sends REST requests to an Express API, whose controllers delegate business operations to services and data access code backed by MongoDB. Authentication includes email OTP verification and password reset; note features include import/export, pinning, and sharing. Source evidence is sampled, so unsampled subsystem connections are omitted rather than inferred.
Main entry points: App.jsx App routing · app.js Express app · routes API routes · auth.service.js Auth service
Components 23
Web client
- App routing
frontend/src/App.jsx - Auth pages
frontend/src/pages/AuthPage - Auth state
frontend/src/hooks/useAuth.js - Auth requests
frontend/src/services/auth.service.js - HTTP client
frontend/src/services/api.js - Notes dashboard
frontend/src/pages/DashboardPage/DashboardPage.jsx - Dashboard actions
frontend/src/hooks/useDashboardHandlers.js - Notes requests
frontend/src/services/notes.service.js - Profile page
frontend/src/pages/ProfilePage/ProfilePage.jsx - Shared note view
frontend/src/pages/SharedNotePage/SharedNotePage.jsx
API and workflows
- Express app
backend/src/app.js - API routes
backend/src/routes - Auth controller
backend/src/controllers/auth.controller.js - Auth service
backend/src/services/auth.service.js - Notes controller
backend/src/controllers/notes.controller.js - Notes service
backend/src/services/notes.service.js - Profile controller
backend/src/controllers/profile.controller.js
Persistence and integrations
- User data access
backend/src/dal/users.dal.js - Notes data access
backend/src/dal/notes.dal.js - Mongo models
backend/src/models - MongoDB
- Email delivery
Other components
- User
Connections 26
- User → App routing: uses
frontend/src/App.jsx - App routing → Auth pages: routes to
frontend/src/App.jsx - App routing → Notes dashboard: routes to
frontend/src/App.jsx - App routing → Profile page: routes to
frontend/src/App.jsx - App routing → Shared note view: routes to
frontend/src/App.jsx - Auth pages → Auth state: uses
frontend/src/pages/AuthPage/LoginPage.jsx - Auth state → Auth requests: dispatches
frontend/src/hooks/useAuth.js - Auth requests → HTTP client: sends requests
frontend/src/services/auth.service.js - Notes dashboard → Dashboard actions: uses
frontend/src/pages/DashboardPage/DashboardPage.jsx - Dashboard actions → Notes requests: calls
frontend/src/hooks/useDashboardHandlers.js - Profile page → Auth state: uses
frontend/src/pages/ProfilePage/ProfilePage.jsx - Shared note view → Notes requests: fetches shared note
frontend/src/pages/SharedNotePage/SharedNotePage.jsx - Notes requests → HTTP client: sends requests
frontend/src/services/notes.service.js - HTTP client → Express app: HTTP API
README.md - Express app → API routes: mounts
backend/src/app.js - API routes → Auth controller: routes auth requests
backend/src/routes/auth.routes.js - API routes → Notes controller: routes note requests
backend/src/routes/notes.routes.js - Auth controller → Auth service: calls
backend/src/controllers/auth.controller.js - Notes controller → Notes service: calls
backend/src/controllers/notes.controller.js - Notes service → Notes data access: queries
backend/src/services/notes.service.js - Auth service → User data access: queries
backend/src/services/auth.service.js - Auth service → Email delivery: sends OTP email
backend/src/services/auth.service.js - User data access → Mongo models: uses user model
backend/src/dal/users.dal.js - Notes data access → Mongo models: uses note model
backend/src/dal/notes.dal.js - Express app → MongoDB: connects before API
backend/src/app.js - Profile controller → User data access: queries
backend/src/controllers/profile.controller.js