How devxniv/landed works
Landed is presented as a job-application tracker with analytics, but the available runtime excerpts chiefly implement registration and login. The visible workflow is a user entering credentials in the React client, which calls Express authentication routes; the server validates input, queries PostgreSQL, and returns a response. The migrations indicate resume, application, interview-round, and task data models, but their runtime workflows and the analytics dashboard are not shown. The graph preserves those documented product stages without inventing their connections.
Main entry points: authUser.controller.js Registration and login · auth.routes.js Auth routes · AuthContext.jsx Auth session · healthcheck.controller.js Health response
Components 21
Web client
- Client routing
Client/src/App.jsx - Login and register
Client/src/pages - Auth session
Client/src/context/AuthContext.jsx - Auth hook
Client/src/context/useAuth.js - Analytics dashboard
Client/src
API server
- API routing
Server/src/app.js - Auth routes
Server/src/routes/auth.routes.js - Request validators
Server/src/validators - Validation middleware
Server/src/middlewares/validator.middleware.js - Registration and login
Server/src/controllers/authUser.controller.js - JWT verification
Server/src/middlewares/auth.middleware.js - Health route
Server/src/routes/healthcheck.route.js - Health response
Server/src/controllers/healthcheck.controller.js
Persistence
- PostgreSQL pool
Server/src/db/dbConnection.js - PostgreSQL
- Domain schema
Server/src/db/migrations
Shared utilities
- API response
Server/src/utils/apiResponse.js - API errors
Server/src/utils/apiError.js - Async handler
Server/src/utils/asyncHandler.js
Other components
- User
- Browser storage
Connections 21
- User → Client routing: uses
Client/src/App.jsx - Client routing → Login and register: routes to
Client/src/App.jsx - Login and register → Auth session: authenticates via
- Auth hook → Auth session: reads
Client/src/context/useAuth.js - Auth session → Browser storage: persists session
Client/src/context/AuthContext.jsx - Auth session → Auth routes: posts credentials
Client/src/context/AuthContext.jsx - API routing → Auth routes: mounts
Server/src/app.js - API routing → Health route: mounts
Server/src/app.js - Auth routes → Request validators: uses rules
Server/src/routes/auth.routes.js - Auth routes → Validation middleware: validates with
Server/src/routes/auth.routes.js - Auth routes → Registration and login: dispatches to
Server/src/routes/auth.routes.js - Registration and login → PostgreSQL pool: queries
Server/src/controllers/authUser.controller.js - PostgreSQL pool → PostgreSQL: connects to
Server/src/db/dbConnection.js - Domain schema → PostgreSQL: defines tables
- Health route → Health response: dispatches to
Server/src/routes/healthcheck.route.js - Registration and login → API response: formats response
Server/src/controllers/authUser.controller.js - Registration and login → API errors: raises errors
Server/src/controllers/authUser.controller.js - Registration and login → Async handler: wraps handler
Server/src/controllers/authUser.controller.js - Health response → API response: formats response
Server/src/controllers/healthcheck.controller.js - Health response → Async handler: wraps handler
Server/src/controllers/healthcheck.controller.js - JWT verification → PostgreSQL pool: looks up user
Server/src/middlewares/auth.middleware.js