How namelessproj/gameslock works
GamesLock is an eternal-post social network: users register and manage profiles, publish posts, interact through comments and follows, and browse search, notifications, achievements, and account activity. The React app routes users to these features and communicates with an Express API backed by MongoDB. Admin functions include achievement management and reported-post review. Edges reflect excerpts, SOURCE INDEX references, and README statements; several feature implementations are unsampled, so their internal links are omitted rather than inferred.
Main entry points: server.js Express API · App.jsx Route application · messageController.js Posts and likes · commentController.js Comments
Components 28
Web application
- Route application
frontend/src/App.jsx - Home and posts
frontend/src/pages/Home.jsx - Profiles and accounts
frontend/src/pages/UserProfile.jsx - Registration
frontend/src/pages/Register.jsx - Search interface
frontend/src/pages/Search.jsx - Admin review
frontend/src/pages/AdminReportedPosts.jsx - Search state
frontend/src/stores/searchStore.js
API and domain
- Express API
backend/server.js - User accounts
backend/controllers/userController.js - Posts and likes
backend/controllers/messageController.js - Comments
backend/controllers/commentController.js - Follow system
backend/controllers/followController.js - Notifications
backend/controllers/notificationController.js - Reported posts
backend/controllers/reportController.js - Search API
backend/controllers/searchController.js - Achievements
backend/controllers/achievementController.js - Connection logs
backend/controllers/logController.js - Authentication guard
backend/middleware/authMiddleware.js
MongoDB models
- User records
backend/models/userModel.js - Post records
backend/models/messageModel.js - Comment records
backend/models/commentModel.js - Follow records
backend/models/followModel.js - Notification records
backend/models/notificationModel.js - Achievement records
backend/models/achievementModel.js - Report records
backend/models/reportModel.js
Supporting services
- Email delivery
backend/utils/sendEmail.js
Other components
- User
- MongoDB
Connections 41
- User → Route application: uses
README.md - Route application → Home and posts: routes to
frontend/src/App.jsx - Route application → Profiles and accounts: routes to
frontend/src/App.jsx - Route application → Registration: routes to
frontend/src/App.jsx - Route application → Search interface: routes to
frontend/src/App.jsx - Route application → Admin review: routes to
frontend/src/App.jsx - Search interface → Search state: uses
frontend/src/pages/Search.jsx - Search state → Express API: requests
frontend/src/stores/searchStore.js - Route application → Express API: uses backend API
README.md - Express API → User accounts: mounts routes
backend/server.js - Express API → Posts and likes: mounts routes
backend/server.js - Express API → Comments: mounts routes
backend/server.js - Express API → Notifications: mounts routes
backend/server.js - Express API → Reported posts: mounts routes
backend/server.js - Express API → Search API: mounts routes
backend/server.js - Express API → Follow system: mounts routes
backend/server.js - Express API → Achievements: mounts routes
backend/server.js - Express API → Connection logs: mounts routes
backend/server.js - User accounts → Authentication guard: guards routes
backend/routes/userRoutes.js - User accounts → User records: reads and writes
backend/controllers/userController.js - Posts and likes → Post records: reads and writes
backend/controllers/messageController.js - Posts and likes → Comment records: reads
backend/controllers/messageController.js - Posts and likes → Follow records: reads
backend/controllers/messageController.js - Posts and likes → Notification records: writes
backend/controllers/messageController.js - Posts and likes → Achievement records: reads
backend/controllers/messageController.js - Comments → Post records: reads and updates
backend/controllers/commentController.js - Comments → Comment records: reads and writes
backend/controllers/commentController.js - Comments → Notification records: writes
backend/controllers/commentController.js - Comments → Email delivery: sends email
backend/controllers/commentController.js - Follow system → Follow records: reads and writes
backend/controllers/followController.js - Follow system → User records: reads and updates
backend/controllers/followController.js - Follow system → Notification records: writes
backend/controllers/followController.js - Follow system → Email delivery: sends email
backend/controllers/followController.js - Notifications → Notification records: reads and writes
backend/controllers/notificationController.js - Reported posts → Report records: reads and writes
backend/controllers/reportController.js - Reported posts → Post records: reads
backend/controllers/reportController.js - Authentication guard → User records: loads account
backend/middleware/authMiddleware.js - User records → Achievement records: looks up
backend/models/userModel.js - User records → Post records: creates achievement post
backend/models/userModel.js - Express API → MongoDB: connects
backend/server.js - User → Registration: registers
README.md