How rekcah97/notex works
NoteX is a full-stack note-taking application. Users register or log in, verify their email with an OTP, then access and manage notes; the backend authenticates requests and persists user, OTP, and note data in MongoDB. The README also documents periodic expired-OTP cleanup and a health endpoint monitored by UptimeRobot. Frontend auth screens and some integrations are represented from the tree and README, but their implementation details were not sampled; those relationships are left unverified where appropriate.
Main entry points: index.Routes.js API routing · Notes.js Notes interface · auth.Controller.js Auth handlers · auth.Routes.js Auth routes
Components 21
React client
- App and routes
frontend/src/App.js - Auth screens
frontend/src/components - Notes interface
frontend/src/components/Notes.js - Note item
frontend/src/components/Noteitem.js - Note state
frontend/src/context/notes/NoteState.js
Express API
- API routing
backend/routes/index.Routes.js - Auth routes
backend/routes/auth.Routes.js - Note routes
backend/routes/notes.Rouets.js
Identity and OTP
- Auth handlers
backend/controllers/auth.Controller.js - Token middleware
backend/middleware/fetchuser.Middleware.js - User records
backend/models/User.js - OTP email helper
backend/helpers/sendOtpVerificationEmail.Helper.js - OTP records
backend/models/UserOTPVerification.js
Notes
- Note handlers
backend/controllers/notes.Controller.js - Note records
backend/models/Note.js
Operations
- Backend server
backend/server.js - MongoDB
- Resend email
- OTP cleanup job
backend/jobs/cleanupExpiredOTP.jobs.js - UptimeRobot
Other components
- User
Connections 27
- User → App and routes: uses
frontend/src/App.js - App and routes → Auth screens: routes to
frontend/src/App.js - App and routes → Notes interface: routes via home
- User → Auth routes: authenticates through
- Notes interface → Note item: renders
frontend/src/components/Notes.js - Notes interface → Note state: uses
frontend/src/components/Notes.js - Notes interface → API routing: requests user status
frontend/src/components/Notes.js - Backend server → API routing: mounts
backend/server.js - API routing → Auth routes: dispatches
backend/routes/index.Routes.js - API routing → Note routes: dispatches
backend/routes/index.Routes.js - Auth routes → Auth handlers: dispatches
backend/routes/auth.Routes.js - Auth routes → Token middleware: authenticates
backend/routes/auth.Routes.js - Note routes → Note handlers: dispatches
backend/routes/notes.Rouets.js - Note routes → Token middleware: authenticates
backend/routes/notes.Rouets.js - Auth handlers → User records: reads and updates
backend/controllers/auth.Controller.js - Auth handlers → OTP records: checks and deletes
backend/controllers/auth.Controller.js - Auth handlers → OTP email helper: sends verification
backend/controllers/auth.Controller.js - OTP email helper → OTP records: creates OTP
backend/helpers/sendOtpVerificationEmail.Helper.js - OTP email helper → Resend email: sends email
backend/helpers/sendOtpVerificationEmail.Helper.js - Note handlers → Note records: reads and writes
backend/controllers/notes.Controller.js - Backend server → MongoDB: connects
README.md - User records → MongoDB: persists in
README.md - OTP records → MongoDB: persists in
README.md - Note records → MongoDB: persists in
README.md - Backend server → OTP cleanup job: schedules
backend/server.js - OTP cleanup job → OTP records: deletes expired
backend/jobs/cleanupExpiredOTP.jobs.js - UptimeRobot → API routing: pings health
README.md