How rajpatel110/devlink works
DevLink is a social networking application: users register or sign in, maintain profiles, browse a paginated feed, send and review connection requests, and view accepted connections. The React client routes these experiences and keeps user/feed state in Redux; the Express API exposes the documented operations, protects user-specific routes with cookie-based JWT authentication, and persists users and connection requests through Mongoose. The backend entry point and several route/model relationships are supported by source excerpts or the SOURCE INDEX; other API capabilities are retained from the README, with client-to-server links omitted where wiring was not shown.
Main entry points: App.jsx Client routes · app.js Express app · request.js Request routes · user.js User and feed routes
Components 27
Web client
- Client routes
DevLink-web/src/App.jsx - Client entry
DevLink-web/src/main.jsx - App shell
DevLink-web/src/components/Body.jsx - Sign up
DevLink-web/src/components/Signup.jsx - Login
DevLink-web/src/components/Login.jsx - Forgot password
DevLink-web/src/components/ForgotPassword.jsx - Reset password
DevLink-web/src/components/ResetPassword.jsx - Profile view
DevLink-web/src/components/Profile.jsx - Profile editor
DevLink-web/src/components/EditProfile.jsx - People feed
DevLink-web/src/components/Feed.jsx - User card
DevLink-web/src/components/UserCard.jsx - Request inbox
DevLink-web/src/components/Requests.jsx - Connections list
DevLink-web/src/components/Connections.jsx
Backend API
- Express app
src/app.js - Authentication routes
src/routes/auth.js - Profile routes
src/routes/profile.js - Request routes
src/routes/request.js - User and feed routes
src/routes/user.js - Database connection
src/config/database.js
Identity and connections
- JWT middleware
src/middlewares/auth.js - Input validation
src/utils/validation.js - User records
src/models/user.js - Connection requests
src/models/connectionRequest.js
Client state
- Redux store
DevLink-web/src/utils/appStore.js - User state
DevLink-web/src/utils/userSlice.js - Feed state
DevLink-web/src/utils/feedSlice.js
Other components
- User
Connections 34
- User → Client routes: uses
DevLink-web/src/App.jsx - Client entry → Client routes: renders
DevLink-web/src/main.jsx - Client routes → App shell: routes to
DevLink-web/src/App.jsx - Client routes → Sign up: routes to
DevLink-web/src/App.jsx - Client routes → Login: routes to
DevLink-web/src/App.jsx - Client routes → Forgot password: routes to
DevLink-web/src/App.jsx - Client routes → Reset password: routes to
DevLink-web/src/App.jsx - Client routes → Profile view: routes to
DevLink-web/src/App.jsx - Client routes → People feed: routes to
DevLink-web/src/App.jsx - Client routes → Request inbox: routes to
DevLink-web/src/App.jsx - Client routes → Connections list: routes to
DevLink-web/src/App.jsx - Profile view → Profile editor: renders
DevLink-web/src/components/Profile.jsx - People feed → User card: renders
DevLink-web/src/components/Feed.jsx - Client routes → Redux store: provides
DevLink-web/src/App.jsx - Redux store → User state: registers
DevLink-web/src/utils/appStore.js - Redux store → Feed state: registers
DevLink-web/src/utils/appStore.js - Profile editor → User state: updates
DevLink-web/src/components/EditProfile.jsx - Profile editor → Profile routes: calls
DevLink-web/src/components/EditProfile.jsx - Express app → Database connection: connects
src/app.js - Express app → Authentication routes: mounts
src/app.js - Express app → Profile routes: mounts
src/app.js - Express app → Request routes: mounts
src/app.js - Express app → User and feed routes: mounts
src/app.js - Authentication routes → Input validation: validates with
src/routes/auth.js - Authentication routes → User records: reads and writes
src/routes/auth.js - Profile routes → JWT middleware: guards routes
src/routes/profile.js - Profile routes → Input validation: validates with
src/routes/profile.js - Request routes → JWT middleware: guards routes
src/routes/request.js - Request routes → Connection requests: reads and writes
src/routes/request.js - Request routes → User records: reads
src/routes/request.js - User and feed routes → JWT middleware: guards routes
src/routes/user.js - User and feed routes → Connection requests: queries
src/routes/user.js - User and feed routes → User records: queries
src/routes/user.js - JWT middleware → User records: loads user
src/middlewares/auth.js