How sumitatallo/trade-points-system works
Project type and purpose
• This is a backend monolith built with the NestJS framework (a modular, TypeScript-based Node.js server).
• Its domain is a points/leaderboard/referral/trading system: it exposes REST (or GraphQL) endpoints for users to earn points, make trades, refer others, and view leaderboards.
File structure
• src/app.module.ts: Root module that imports all feature modules.
• src/config/database: DatabaseModule with connection setup (likely TypeORM).
• src/leaderboards, src/points, src/referrals, src/trades, src/users: Each is a NestJS module containing entities and (presumably) controllers/services.
• src/app.controller.ts, src/app.service.ts: Default top-level health / root endpoints.
• src/main.ts: Boots the NestJS HTTP server.
• test/: End-to-end test harness.
README
• Confirms this is a “starter” NestJS application scaffold.
• No custom architecture doc; we infer from modules and entities that each feature module encapsulates its domain logic and data models.