How ratanakchhay/devconnector-project works
DevConnector is a React/Express community app for account access, member profiles, and sharing achievements. Users enter through routed screens, authenticate, create or view profiles, then browse posts and interact through likes and comments. Client action modules make REST requests; Express routes apply authentication where needed and use MongoDB-backed models. The README describes a real-time feed, but the supplied code does not show its implementation, so no real-time mechanism is inferred. Some UI and route implementations are unsampled; their links are limited to documented or indexed evidence.
Main entry points: App.js Routed application · api/profile.js Profile API · actions/profile.js Profile actions · server.js Express server
Components 24
Client application
- Routed application
client/src/App.js
Identity
- Login and registration
client/src/components/auth - Auth actions
client/src/actions/auth.js - Token header setup
client/src/utils/setAuthToken.js
Member profiles
- Profile screens and forms
client/src/components/profile - Profile editing forms
client/src/components/profile-form - Profile actions
client/src/actions/profile.js - Member directory
client/src/components/profiles - Member dashboard
client/src/components/dashboard
Community posts
- Community feed and posts
client/src/components/posts - Post detail and comments
client/src/components/post - Post actions
client/src/actions/post.js
API and persistence
- Authentication API
routes/api/auth.js - User registration API
routes/api/users.js - JWT middleware
middleware/auth.js - User model
models/User.js - Profile API
routes/api/profile.js - Profile model
models/Profile.js - Posts API
routes/api/posts.js - Post model
models/Post.js - Express server
server.js
Other components
- Community member
- GitHub repositories
- MongoDB
Connections 37
- Community member → Routed application: uses
- Routed application → Login and registration: routes to
client/src/App.js - Routed application → Member directory: routes to
client/src/App.js - Routed application → Profile screens and forms: routes to
client/src/App.js - Routed application → Profile editing forms: routes to
client/src/App.js - Routed application → Member dashboard: routes to
client/src/App.js - Routed application → Community feed and posts: routes to
client/src/App.js - Routed application → Post detail and comments: routes to
client/src/App.js - Login and registration → Auth actions: dispatches
client/src/components/auth/Login.js - Auth actions → Authentication API: requests login
client/src/actions/auth.js - Auth actions → User registration API: requests registration
client/src/actions/auth.js - Auth actions → Token header setup: sets token
client/src/actions/auth.js - Authentication API → JWT middleware: authenticates request
routes/api/auth.js - Authentication API → User model: reads user
routes/api/auth.js - User registration API → User model: creates user
routes/api/users.js - Profile editing forms → Profile actions: dispatches
client/src/components/profile-form/CreateProfile.js - Member dashboard → Profile actions: loads profile
client/src/components/dashboard/Dashboard.js - Member directory → Profile actions: loads profiles
client/src/components/profiles/Profiles.js - Profile screens and forms → Profile actions: loads profile
client/src/components/profile/Profile.js - Profile actions → Profile API: requests profile data
client/src/actions/profile.js - Profile API → JWT middleware: authenticates request
routes/api/profile.js - Profile API → Profile model: reads and writes
routes/api/profile.js - Profile API → User model: reads and deletes
routes/api/profile.js - Profile screens and forms → GitHub repositories: shows repositories
- Profile API → GitHub repositories: requests repositories
routes/api/profile.js - Community feed and posts → Post actions: dispatches
client/src/components/posts/Posts.js - Post detail and comments → Post actions: dispatches
client/src/components/post/Post.js - Post actions → Posts API: requests posts
client/src/actions/post.js - Posts API → JWT middleware: authenticates request
routes/api/posts.js - Posts API → Post model: reads and writes
routes/api/posts.js - Express server → Authentication API: mounts route
server.js - Express server → User registration API: mounts route
server.js - Express server → Profile API: mounts route
server.js - Express server → Posts API: mounts route
server.js - User model → MongoDB: persists in
- Profile model → MongoDB: persists in
- Post model → MongoDB: persists in