How laptop-iq/copycode works
This repository presents an Expense Tracker-branded web application whose visible core is a command-group library, alongside account access and contact-email features. The principal supported workflow is a user opening the routed frontend and reaching the command library; backend command routes expose group listing and authenticated management handlers backed by MongoDB. Account controllers implement registration, OTP verification, login, password reset, and profile management. The excerpts do not establish most frontend-to-API calls, so those links are omitted; dashed edges mark integrations whose wiring was not shown.
Main entry points: App.jsx Routes and session · userController.js Account operations · server.js HTTP API server · commandRoutes.js Command routes
Components 19
Web application
- Routes and session
frontend/src/App.jsx - Account screens
frontend/src/Context - Command library UI
frontend/src/components/CommandLibrary.jsx - Signed-in layout
frontend/src/components/Layout.jsx - Sidebar navigation
frontend/src/components/Sidebar.jsx
Account and identity
- User routes
backend/routes/userRoute.js - Account operations
backend/controllers/userController.js - User records
backend/models/userModel.js - OTP mail delivery
backend/emailVerify/sendOtpMail.js - Verification mail
backend/emailVerify/verifyOtpMail.js
Command library
- Command routes
backend/routes/commandRoutes.js - Group operations
backend/controllers/commandController.js - Command groups
backend/models/commandGroupModel.js
Backend services
- HTTP API server
backend/server.js - Cloudinary
- Command auth guard
backend/middleware/authMiddleware.js - Contact email handler
backend/routes/contactRoutes.js - Email service
Other components
- User
Connections 18
- User → Routes and session: uses
frontend/src/App.jsx - Routes and session → Account screens: routes to
frontend/src/App.jsx - Routes and session → Command library UI: renders
frontend/src/App.jsx - Routes and session → Signed-in layout: wraps
frontend/src/App.jsx - Signed-in layout → Sidebar navigation: renders
frontend/src/components/Layout.jsx - Routes and session → HTTP API server: validates session
frontend/src/App.jsx - HTTP API server → User routes: mounts
backend/server.js - User routes → Account operations: dispatches
backend/routes/userRoute.js - Account operations → User records: reads and writes
backend/controllers/userController.js - Account operations → OTP mail delivery: sends reset OTP
backend/controllers/userController.js - Account operations → Verification mail: sends verification OTP
backend/controllers/userController.js - Account operations → Cloudinary: uploads profile image
backend/controllers/userController.js - HTTP API server → Command routes: mounts
backend/server.js - Command routes → Group operations: dispatches
backend/routes/commandRoutes.js - Command routes → Command auth guard: guards mutations
backend/routes/commandRoutes.js - Group operations → Command groups: reads and writes
backend/controllers/commandController.js - HTTP API server → Contact email handler: mounts
backend/server.js - Contact email handler → Email service: sends contact emails
backend/routes/contactRoutes.js