How kinzarehman/lockedin works
Locked In is a MERN challenge tracker: visitors learn about the product, create or recover an account, then enter member pages for onboarding, challenges, progress, rankings, and community encouragement. The sampled backend implements authentication and password recovery, while the README and landing page describe member capabilities that are still in progress; their internal data flows are not shown. Edges reflect explicit routing, calls, or documented behavior, with the browser-to-API connection marked unverified.
Main entry points: App.jsx Page router · authRoutes.js Auth endpoints · authController.js Account operations · User.js User account model
Components 21
Web experience
- Page router
client/src/App.jsx - Product landing
client/src/pages/Landing.jsx - Signup and login
client/src/pages/Signup.jsx - Password recovery
client/src/pages/ForgotPassword.jsx - Member navigation
client/src/components/MemberLayout.jsx
Identity and sessions
- Auth API client
client/src/api/authApi.js - Auth endpoints
server/routes/authRoutes.js - Account operations
server/controllers/authController.js - Session guard
server/middleware/authMiddleware.js - Recovery rate limit
server/middleware/recoveryRateLimit.js - Email account lookup
server/services/findUserByEmail.js - User account model
server/models/User.js - MongoDB
- Reset email delivery
server/services/passwordResetEmail.js
Challenge community
- Onboarding questionnaire
client/src/pages/Questionnaire.jsx - Challenge selection
client/src/pages/Challenges.jsx - Progress dashboard
client/src/pages/Dashboard.jsx - Community leaderboard
client/src/pages/Leaderboard.jsx - Encouragement inbox
client/src/pages/Inbox.jsx
Other components
- Visitor / member
- Email provider
Connections 23
- Visitor / member → Page router: opens
- Page router → Product landing: routes to
client/src/App.jsx - Page router → Signup and login: routes to
client/src/App.jsx - Page router → Password recovery: routes to
client/src/App.jsx - Page router → Member navigation: wraps member pages
client/src/App.jsx - Page router → Onboarding questionnaire: routes to
client/src/App.jsx - Page router → Challenge selection: routes to
client/src/App.jsx - Page router → Progress dashboard: routes to
client/src/App.jsx - Page router → Community leaderboard: routes to
client/src/App.jsx - Page router → Encouragement inbox: routes to
client/src/App.jsx - Member navigation → Auth API client: requests logout
client/src/components/MemberLayout.jsx - Signup and login → Auth API client: requests auth
client/src/pages/Signup.jsx - Auth API client → Auth endpoints: calls over HTTP
- Auth endpoints → Account operations: dispatches
server/routes/authRoutes.js - Auth endpoints → Session guard: guards /me
server/routes/authRoutes.js - Auth endpoints → Recovery rate limit: limits recovery
server/routes/authRoutes.js - Account operations → User account model: reads and writes
server/controllers/authController.js - Account operations → Email account lookup: finds accounts
server/controllers/authController.js - Email account lookup → User account model: queries
server/services/findUserByEmail.js - Session guard → User account model: loads account
server/middleware/authMiddleware.js - User account model → MongoDB: stores accounts
server/models/User.js - Account operations → Reset email delivery: sends reset link
server/controllers/authController.js - Reset email delivery → Email provider: delivers email