How shuganchauhan/ars works
Gamers'G is a gaming-platform backend API for players, organizations, teams, tournament organizers, and admins. Clients sign up or log in, then use authenticated APIs for profiles, team rosters, recruitment, social activity, messaging, tournaments, and administration; results are returned over HTTP, with selected updates also emitted in real time. The map follows the documented route-registration and sampled service dependencies. Several domain services and real-time wiring are not excerpted, so their internal relationships are not inferred.
Main entry points: app.js Express application · index.js PostgreSQL access · server.js HTTP server startup · social.service.js Follows and feed
Components 22
API entry
- Express application
src/app.js - HTTP server startup
src/server.js
Identity
- Accounts and login
src/modules/auth/auth.service.js - Admin verification
src/modules/admin/admin.service.js
Players and teams
- Player profiles
src/modules/players/players.service.js - Organizations
src/modules/orgs/orgs.service.js - Teams and rosters
src/modules/teams/teams.service.js - Recruitment lifecycle
src/modules/recruitment/recruitment.service.js
Platform activity
- Discovery search
src/modules/discovery/discovery.service.js - Follows and feed
src/modules/social/social.service.js - Direct messaging
src/modules/messaging/messaging.service.js - Tournaments
src/modules/tournaments/tournaments.service.js
Shared runtime
- PostgreSQL access
src/shared/db/index.js - JWT helpers
src/shared/auth/jwt.js - Authentication middleware
src/shared/auth/middleware.js - Request validation
src/shared/validation/index.js - Error handling
src/shared/errors/index.js - Cursor pagination
src/shared/pagination/index.js - Redis client
src/shared/redis/index.js - Rate limiting
src/shared/ratelimit/index.js - Realtime events
src/shared/socket/index.js
Other components
- API clients
Connections 35
- API clients → Express application: sends requests
src/app.js - Express application → Accounts and login: mounts routes
src/app.js - Express application → Player profiles: mounts routes
src/app.js - Express application → Organizations: mounts routes
src/app.js - Express application → Teams and rosters: mounts routes
src/app.js - Express application → Recruitment lifecycle: mounts routes
src/app.js - Express application → Discovery search: mounts routes
src/app.js - Express application → Follows and feed: mounts routes
src/app.js - Express application → Direct messaging: mounts routes
src/app.js - Express application → Tournaments: mounts routes
src/app.js - Express application → Admin verification: mounts routes
src/app.js - Express application → Error handling: handles errors
src/app.js - Accounts and login → PostgreSQL access: queries
src/modules/auth/auth.service.js - Accounts and login → JWT helpers: signs tokens
src/modules/auth/auth.service.js - Authentication middleware → JWT helpers: verifies tokens
src/shared/auth/middleware.js - Authentication middleware → Error handling: raises auth errors
src/shared/auth/middleware.js - Admin verification → PostgreSQL access: queries
src/modules/admin/admin.service.js - Discovery search → PostgreSQL access: queries
src/modules/discovery/discovery.service.js - Discovery search → Cursor pagination: uses cursors
src/modules/discovery/discovery.service.js - Recruitment lifecycle → PostgreSQL access: queries
src/modules/recruitment/recruitment.service.js - Recruitment lifecycle → Realtime events: emits updates
src/modules/recruitment/recruitment.service.js - Follows and feed → PostgreSQL access: queries
src/modules/social/social.service.js - Follows and feed → Cursor pagination: uses cursors
src/modules/social/social.service.js - Follows and feed → Realtime events: emits updates
src/modules/social/social.service.js - Direct messaging → PostgreSQL access: queries
- Teams and rosters → PostgreSQL access: queries
src/modules/teams/teams.service.js - Organizations → PostgreSQL access: queries
- Player profiles → PostgreSQL access: queries
- Tournaments → PostgreSQL access: queries
src/modules/tournaments/tournaments.service.js - HTTP server startup → Express application: starts
src/server.js - HTTP server startup → Realtime events: initializes
src/server.js - HTTP server startup → PostgreSQL access: uses
src/server.js - HTTP server startup → Redis client: uses
src/server.js - Rate limiting → Redis client: stores limits
src/shared/ratelimit/index.js - Realtime events → Redis client: uses adapter
src/shared/socket/index.js