How v07787805-eng/mern-pingup-backend works
PingUp is a social-network application with a React client and a small Express service. The user-facing workflow routes signed-in users to a feed, profiles, discovery, connections, posts, stories, and messaging; the sampled screens largely use dummy data, so no client-to-server content workflow is established. Separately, Clerk user lifecycle events are handled by Inngest and synchronized to MongoDB. The graph preserves the major frontend feature areas and backend identity-sync path; several page implementations were not excerpted, so their shown relationships rely on the source index.
Main entry points: App.jsx Route shell · Profile.jsx Profile page · Feed.jsx Feed · index.js Lifecycle handlers
Components 31
Application shell
- React entry
chatapp/src/main.jsx - Route shell
chatapp/src/App.jsx - App layout
chatapp/src/pages/Layout.jsx - Navigation
chatapp/src/components/Sidebar.jsx - Menu items
chatapp/src/components/MenuItems.jsx - Loading view
chatapp/src/components/Loading.jsx
Social features
- Feed
chatapp/src/pages/Feed.jsx - Post display
chatapp/src/components/PostCard.jsx - Stories bar
chatapp/src/components/StoriesBar.jsx - Story creation
chatapp/src/components/StoryModel.jsx - Story viewer
chatapp/src/components/StoryViewer.jsx - Post creation
chatapp/src/pages/CreatePost.jsx - Profile page
chatapp/src/pages/Profile.jsx - Profile details
chatapp/src/components/UserProfileinfo.jsx - Profile editor
chatapp/src/components/ProfileModal.jsx - Demo data
chatapp/src/assets/assets.js
Network and messaging
- Connections
chatapp/src/pages/Connection.jsx - Discover people
chatapp/src/pages/Discover.jsx - User card
chatapp/src/components/UserCard.jsx - Messages
chatapp/src/pages/Message.jsx - Chat interface
chatapp/src/components/ChatBox.jsx - Recent messages
chatapp/src/components/RecentMessages.jsx
Identity sync
- Login page
chatapp/src/pages/Login.jsx - Clerk identity
- Express service
server/server.js - Lifecycle handlers
server/inngest/index.js - Inngest event service
Persistence
- User model
server/models/user.js - MongoDB
- Database connection
server/configs/db.js
Other components
- Social user
Connections 41
- Social user → React entry: opens
- React entry → Clerk identity: provides identity
chatapp/src/main.jsx - React entry → Route shell: renders
chatapp/src/main.jsx - Route shell → Login page: routes to
chatapp/src/App.jsx - Route shell → App layout: routes to
chatapp/src/App.jsx - App layout → Navigation: renders
chatapp/src/pages/Layout.jsx - Navigation → Menu items: renders
chatapp/src/components/Sidebar.jsx - Route shell → Feed: routes to
chatapp/src/App.jsx - Route shell → Messages: routes to
chatapp/src/App.jsx - Route shell → Chat interface: routes to
chatapp/src/App.jsx - Route shell → Connections: routes to
chatapp/src/App.jsx - Route shell → Discover people: routes to
chatapp/src/App.jsx - Route shell → Profile page: routes to
chatapp/src/App.jsx - Route shell → Post creation: routes to
chatapp/src/App.jsx - Feed → Stories bar: renders
chatapp/src/pages/Feed.jsx - Feed → Post display: renders
chatapp/src/pages/Feed.jsx - Feed → Recent messages: renders
chatapp/src/pages/Feed.jsx - Feed → Loading view: renders
chatapp/src/pages/Feed.jsx - Stories bar → Story creation: opens
chatapp/src/components/StoriesBar.jsx - Stories bar → Story viewer: opens
chatapp/src/components/StoriesBar.jsx - Profile page → Profile details: renders
chatapp/src/pages/Profile.jsx - Profile page → Post display: renders
chatapp/src/pages/Profile.jsx - Profile page → Profile editor: opens
chatapp/src/pages/Profile.jsx - Profile page → Loading view: renders
chatapp/src/pages/Profile.jsx - Discover people → User card: renders
chatapp/src/pages/Discover.jsx - Discover people → Loading view: renders
chatapp/src/pages/Discover.jsx - Connections → Profile page: navigates to
chatapp/src/pages/Connection.jsx - Connections → Chat interface: navigates to
chatapp/src/pages/Connection.jsx - Feed → Demo data: loads demo data
chatapp/src/pages/Feed.jsx - Post creation → Demo data: loads demo data
chatapp/src/pages/CreatePost.jsx - Connections → Demo data: loads demo data
chatapp/src/pages/Connection.jsx - Profile page → Demo data: loads demo data
chatapp/src/pages/Profile.jsx - Messages → Demo data: loads demo data
chatapp/src/pages/Message.jsx - Express service → Database connection: connects
server/server.js - Express service → Lifecycle handlers: serves functions
server/server.js - Lifecycle handlers → User model: syncs users
server/inngest/index.js - Lifecycle handlers → Database connection: connects
server/inngest/index.js - Lifecycle handlers → Inngest event service: registers handlers
server/inngest/index.js - Clerk identity → Lifecycle handlers: emits lifecycle events
server/inngest/index.js - User model → MongoDB: stores records
- Database connection → MongoDB: connects
server/configs/db.js