How gunasekhar7093/localhire works
LocalHire is a social hiring platform: users register or sign in, publish skill-seeker or vacancy posts, browse and filter opportunities, then contact one another through conversations and messaging. The graph includes the documented admin, profile, privacy, and password-recovery capabilities alongside the main workflow. Some frontend pages and server integrations are unsampled; their documented product roles are retained, but unverified connections are omitted or marked dashed.
Main entry points: authController.js Account operations · AuthContext.jsx Session context · server.js Express API and sockets · postRoutes.js Post routes
Components 30
Web application
- Application shell
client/src/App.jsx - Session context
client/src/context/AuthContext.jsx - Theme context
client/src/context/ThemeContext.jsx - API configuration
client/src/config.js - Loading skeletons
client/src/components/Skeleton.jsx
Identity and profiles
- Account screens
client/src/pages/Register.jsx - Profile screens
client/src/pages/Profile.jsx - Admin screens
client/src/pages/AdminDashboard.jsx - Auth routes
server/routes/authRoutes.js - Account operations
server/controllers/authController.js - JWT protection
server/middleware/authMiddleware.js
Hiring marketplace
- Create skill or vacancy
client/src/pages/CreatePost.jsx - Explore and search
client/src/pages/Explore.jsx - Post details
client/src/pages/PostDetails.jsx - Post cards
client/src/components/PostCard.jsx - Home feed
client/src/pages/Home.jsx - Post routes
server/routes/postRoutes.js - Post operations
server/controllers/postController.js
Messaging
- Chat interface
client/src/pages/Messages.jsx - Message routes
server/routes/messageRoutes.js - Conversation operations
server/controllers/messageController.js
Persistence and services
- User records
server/models/User.js - OTP records
server/models/OTP.js - Hiring posts
server/models/Post.js - Conversations
server/models/Conversation.js - Messages
server/models/Message.js - Express API and sockets
server/server.js - MongoDB
- EmailJS
Other components
- Platform user
Connections 43
- Platform user → Application shell: uses
README.md - Application shell → Session context: provides session
- Application shell → Theme context: uses theme
- Application shell → Home feed: shows feed
- Platform user → Account screens: registers or signs in
README.md - Account screens → Session context: uses session actions
- Session context → API configuration: uses API URL
client/src/context/AuthContext.jsx - Session context → Auth routes: requests account endpoints
client/src/context/AuthContext.jsx - Auth routes → Account operations: dispatches
server/routes/authRoutes.js - Auth routes → JWT protection: protects routes
server/routes/authRoutes.js - Account operations → User records: reads and writes
server/controllers/authController.js - Account operations → OTP records: stores verification codes
server/controllers/authController.js - Account operations → Hiring posts: deletes user posts
server/controllers/authController.js - Account operations → Conversations: cleans up conversations
server/controllers/authController.js - Account operations → Messages: cleans up messages
server/controllers/authController.js - JWT protection → User records: loads account
server/middleware/authMiddleware.js - Account operations → EmailJS: sends OTP email
server/controllers/authController.js - Platform user → Create skill or vacancy: publishes listing
README.md - Platform user → Explore and search: browses listings
README.md - Create skill or vacancy → API configuration: uses API URL
client/src/pages/CreatePost.jsx - Create skill or vacancy → Session context: uses signed-in user
client/src/pages/CreatePost.jsx - Create skill or vacancy → Post routes: submits listing
- Explore and search → Post routes: searches listings
- Post routes → Post operations: dispatches
server/routes/postRoutes.js - Post routes → JWT protection: protects writes
server/routes/postRoutes.js - Post operations → Hiring posts: queries and saves
server/controllers/postController.js - Platform user → Chat interface: contacts users
README.md - Chat interface → API configuration: uses API URL
client/src/pages/Messages.jsx - Chat interface → Session context: uses session and socket
client/src/pages/Messages.jsx - Session context → Express API and sockets: connects for realtime chat
client/src/context/AuthContext.jsx - Chat interface → Message routes: uses messaging API
- Message routes → Conversation operations: dispatches
server/routes/messageRoutes.js - Message routes → JWT protection: protects routes
server/routes/messageRoutes.js - Conversation operations → Conversations: reads and updates
server/controllers/messageController.js - Conversation operations → Messages: reads and writes
server/controllers/messageController.js - Express API and sockets → Auth routes: mounts
server/server.js - Express API and sockets → Post routes: mounts
server/server.js - Express API and sockets → Message routes: mounts
server/server.js - Express API and sockets → MongoDB: connects database
- User records → MongoDB: persists records
- Hiring posts → MongoDB: persists records
- Messages → MongoDB: persists records
- Conversations → MongoDB: persists records