How azizbekreimbaev/ski-resort works
SkiResort is a NestJS backend with a GraphQL-oriented API and a separate scheduled batch application. The principal documented workflow is member and resort access followed by instructor application, review, and instructor-profile management. The API also covers resort catalog, equipment, events, FAQs, articles and comments, social interactions, assistant features, authentication, and chat. Source-index references and excerpts establish selected service dependencies; unsampled resolvers and modules limit confidence about some routing and integrations.
Main entry points: member.service.ts Members and instructors · resort.service.ts Resort catalog · equipment.service.ts Equipment · like.service.ts Follow and like
Components 20
API features
- GraphQL API
apps/skiresort-api/src/app.resolver.ts - Resort catalog
apps/skiresort-api/src/components/resort/resort.service.ts - Equipment
apps/skiresort-api/src/components/equipment/equipment.service.ts - Events
apps/skiresort-api/src/components/event/event.service.ts - FAQs
apps/skiresort-api/src/components/faq/faq.service.ts - Assistant
apps/skiresort-api/src/components/assistant/assistant.service.ts - Board articles
apps/skiresort-api/src/components/board-article/board-article.service.ts - Comments
apps/skiresort-api/src/components/comment/comment.service.ts
Identity and community
- Members and instructors
apps/skiresort-api/src/components/member/member.service.ts - Instructor applications
apps/skiresort-api/src/components/instructor-application/instructor-application.service.ts - Authentication
apps/skiresort-api/src/components/auth/auth.service.ts - Sessions
apps/skiresort-api/src/components/auth/session.service.ts - Follow and like
apps/skiresort-api/src/components/like/like.service.ts - View history
apps/skiresort-api/src/components/view/view.service.ts - Chat gateway
apps/skiresort-api/src/socket/socket.gateway.ts
Runtime services
- MongoDB
apps/skiresort-api/src/database/database.module.ts - Shared config and lookups
apps/skiresort-api/src/libs/config.ts
Scheduled jobs
- Batch application
apps/skiresort-batch/src/batch.controller.ts - Scheduled processing
apps/skiresort-batch/src/batch.service.ts
Other components
- API clients
Connections 31
- API clients → GraphQL API: query and mutate
README.md - GraphQL API → Resort catalog: serves catalog
README.md - GraphQL API → Members and instructors: serves member workflow
README.md - Members and instructors → Instructor applications: submits applications
README.md - Instructor applications → Members and instructors: updates instructor profile
apps/skiresort-api/src/components/instructor-application/instructor-application.service.ts - Equipment → Resort catalog: checks resort
apps/skiresort-api/src/components/equipment/equipment.service.ts - Equipment → Follow and like: loads favorites
apps/skiresort-api/src/components/equipment/equipment.service.ts - Equipment → View history: loads visits
apps/skiresort-api/src/components/equipment/equipment.service.ts - Resort catalog → Follow and like: loads favorites
apps/skiresort-api/src/components/resort/resort.service.ts - Resort catalog → View history: loads visits
apps/skiresort-api/src/components/resort/resort.service.ts - Members and instructors → Authentication: authenticates members
apps/skiresort-api/src/components/member/member.service.ts - Members and instructors → Sessions: manages sessions
apps/skiresort-api/src/components/member/member.service.ts - Members and instructors → Follow and like: records likes
apps/skiresort-api/src/components/member/member.service.ts - Members and instructors → View history: records views
apps/skiresort-api/src/components/member/member.service.ts - Board articles → Members and instructors: loads authors
apps/skiresort-api/src/components/board-article/board-article.service.ts - Board articles → Follow and like: uses likes
apps/skiresort-api/src/components/board-article/board-article.service.ts - Board articles → View history: uses view history
apps/skiresort-api/src/components/board-article/board-article.service.ts - Comments → Board articles: resolves articles
apps/skiresort-api/src/components/comment/comment.service.ts - Comments → Members and instructors: resolves members
apps/skiresort-api/src/components/comment/comment.service.ts - Comments → Resort catalog: resolves resorts
apps/skiresort-api/src/components/comment/comment.service.ts - Assistant → Equipment: uses equipment tools
apps/skiresort-api/src/components/assistant/assistant.service.ts - Assistant → Events: uses event tools
apps/skiresort-api/src/components/assistant/assistant.service.ts - Assistant → FAQs: uses FAQ tools
apps/skiresort-api/src/components/assistant/assistant.service.ts - Assistant → Resort catalog: uses resort tools
apps/skiresort-api/src/components/assistant/assistant.service.ts - Batch application → Scheduled processing: dispatches jobs
apps/skiresort-batch/src/batch.controller.ts - Members and instructors → MongoDB: reads and writes
- Resort catalog → MongoDB: reads and writes
- Equipment → MongoDB: reads and writes
- Follow and like → MongoDB: reads and writes
- View history → MongoDB: reads and writes
- GraphQL API → Chat gateway: chat integration