How akabhishek2316/studentdeck works
StudentDeck is a student campus community platform. Students browse or publish marketplace listings, academic resources, events, and lost-and-found reports; authenticated students also manage profiles and saved items and message one another. The React client routes these experiences to an Express API, whose controllers enforce domain operations and persist records; messaging and notifications can also dispatch Socket.IO events, and media uses Cloudinary. Unsampled routes and controllers are represented as domain subsystems where the tree supports them; their detailed behavior is not assumed.
Main entry points: server.js HTTP and socket server · App.jsx Page routing · messageController.js Message operations · marketplaceController.js Marketplace operations
Components 27
Student interface
- Page routing
client/src/App.jsx - API client
client/src/api.js
Campus content
- Marketplace pages
client/src/pages/Marketplace.jsx - Academic pages
client/src/pages/Academic.jsx - Event pages
client/src/pages/Events.jsx - Lost & found pages
client/src/pages/LostFound.jsx
Identity and activity
- Messaging interface
client/src/pages/Messages.jsx - Profile and saves
client/src/pages/Profile.jsx
API services
- HTTP and socket server
server/server.js - Authentication
server/controllers/authController.js - Marketplace operations
server/controllers/marketplaceController.js - Academic operations
server/controllers/academicController.js - Event operations
server/controllers/eventController.js - Lost & found operations
server/controllers/lostFoundController.js - Message operations
server/controllers/messageController.js - Notifications
server/utils/notificationHelper.js
Persistence and integrations
- User records
server/models/User.js - Listing records
server/models/Marketplace.js - Resource records
server/models/AcademicResource.js - Event records
server/models/Event.js - Lost-item records
server/models/LostFound.js - Conversation records
server/models/Conversation.js - Message records
server/models/Message.js - Notification records
server/models/Notification.js
Other components
- Student
- Cloudinary media
- MongoDB
Connections 39
- Student → Page routing: browses and submits
client/src/App.jsx - Page routing → Marketplace pages: routes to
client/src/App.jsx - Page routing → Academic pages: routes to
client/src/App.jsx - Page routing → Event pages: routes to
client/src/App.jsx - Page routing → Lost & found pages: routes to
client/src/App.jsx - Page routing → Messaging interface: routes to
client/src/App.jsx - Page routing → Profile and saves: routes to
client/src/App.jsx - Messaging interface → API client: calls
client/src/pages/Messages.jsx - Profile and saves → API client: calls
client/src/pages/Profile.jsx - API client → HTTP and socket server: sends API requests
README.md - HTTP and socket server → Authentication: routes auth requests
server/server.js - HTTP and socket server → Marketplace operations: routes marketplace requests
server/server.js - HTTP and socket server → Academic operations: routes resource requests
server/server.js - HTTP and socket server → Event operations: routes event requests
server/server.js - HTTP and socket server → Lost & found operations: routes lost-item requests
server/server.js - HTTP and socket server → Message operations: routes message requests
server/server.js - Marketplace operations → Listing records: reads and writes
server/controllers/marketplaceController.js - Academic operations → Resource records: reads and writes
server/controllers/academicController.js - Event operations → Event records: reads and writes
server/controllers/eventController.js - Lost & found operations → Lost-item records: reads and writes
server/controllers/lostFoundController.js - Message operations → Conversation records: reads and writes
server/controllers/messageController.js - Message operations → Message records: reads and writes
server/controllers/messageController.js - Authentication → User records: manages accounts
- Message operations → User records: looks up participants
server/controllers/messageController.js - Marketplace operations → Cloudinary media: deletes media
server/controllers/marketplaceController.js - Academic operations → Cloudinary media: manages files
server/controllers/academicController.js - Marketplace operations → Notifications: creates announcements
server/controllers/marketplaceController.js - Academic operations → Notifications: creates announcements
server/controllers/academicController.js - Notifications → User records: selects recipients
server/utils/notificationHelper.js - Notifications → Notification records: stores notifications
server/utils/notificationHelper.js - Message operations → HTTP and socket server: emits message events
server/controllers/messageController.js - HTTP and socket server → Message records: updates delivery status
server/server.js - Listing records → MongoDB: persists in
- Resource records → MongoDB: persists in
- Event records → MongoDB: persists in
- Lost-item records → MongoDB: persists in
- User records → MongoDB: persists in
- Message records → MongoDB: persists in
- Notification records → MongoDB: persists in