How paldhaduk7-png/password-manger works
PassOP is a web password manager with account authentication, a credential vault, profile management, and password recovery. Users enter through the React app, authenticate or create an account, then manage saved credentials and their profile; recovery uses an OTP emailed to the account. The backend exposes user and password API routes backed by MongoDB, with optional Google sign-in and Cloudinary profile images. Password-route handlers and several frontend pages were not sampled, so their internal calls are not asserted; dashed links mark unverified API connections.
Main entry points: App.jsx React app routes · server.js Express API · user.js Account controller · Signup.jsx Sign-in and signup
Components 24
Web application
- React app routes
Frontend/src/App.jsx - Auth state
Frontend/src/ContextAPI/AuthContext.jsx - Theme state
Frontend/src/ContextAPI/ThemeContext.jsx
Identity and profiles
- Sign-in and signup
Frontend/src/auth/Signup.jsx - Google sign-in
Frontend/src/auth/GoogleLoginButton.jsx - Password recovery UI
Frontend/src/auth/ForgotPassword.jsx - Profile screens
Frontend/src/pages/Profile.jsx - OTP recovery
Backend/controllers/otpController.js - Account controller
Backend/controllers/user.js
Password vault
- Vault home
Frontend/src/pages/Home.jsx - Credential display
Frontend/src/pages/Display.jsx - Credential editor
Frontend/src/pages/Update.jsx - Saved credentials
Frontend/src/pages/SavedPasswords.jsx - Password records
Backend/models/Password.js
Backend and storage
- Express API
Backend/server.js - User and OTP routes
Backend/routes/user.js - Password routes
Backend/routes/passwordRoutes.js - User records
Backend/models/user.js - Email delivery
Backend/utils/sendEmail.js - MongoDB
Other components
- User
- Cloudinary
- Google identity
- Email service
Connections 32
- User → React app routes: uses
- React app routes → Vault home: routes to
Frontend/src/App.jsx - React app routes → Sign-in and signup: routes to
Frontend/src/App.jsx - React app routes → Password recovery UI: routes to
Frontend/src/App.jsx - React app routes → Profile screens: routes to
Frontend/src/App.jsx - React app routes → Saved credentials: routes to
Frontend/src/App.jsx - React app routes → Credential editor: routes to
Frontend/src/App.jsx - Sign-in and signup → Auth state: uses
- Sign-in and signup → Google sign-in: renders
Frontend/src/auth/Signup.jsx - Google sign-in → Auth state: uses
Frontend/src/auth/GoogleLoginButton.jsx - Auth state → Express API: API calls
- Vault home → Credential display: renders
Frontend/src/pages/Home.jsx - Credential display → Credential editor: edits credentials
- Vault home → Express API: loads vault
- Credential editor → Express API: saves credentials
- Saved credentials → Express API: loads saved
- Profile screens → Express API: profile requests
- Express API → User and OTP routes: mounts at
Backend/server.js - Express API → Password routes: mounts at
Backend/server.js - User and OTP routes → Account controller: routes requests
Backend/routes/user.js - User and OTP routes → OTP recovery: mounts OTP routes
Backend/routes/user.js - Password routes → Password records: uses records
- Account controller → User records: reads and writes
Backend/controllers/user.js - OTP recovery → User records: reads and writes
Backend/controllers/otpController.js - OTP recovery → Email delivery: sends recovery
Backend/controllers/otpController.js - Email delivery → Email service: delivers mail
- Account controller → Cloudinary: uploads images
Backend/controllers/user.js - Account controller → Google identity: verifies token
Backend/controllers/user.js - Express API → MongoDB: connects
- User records → MongoDB: persists users
- Password records → MongoDB: persists credentials
- React app routes → Theme state: reads theme
Frontend/src/App.jsx