Skip to content

Add chat module skeleton#204

Merged
MaryammAli merged 2 commits into
BlockDash-Studios:mainfrom
Tim4evar:feature/chat-module
Jun 27, 2026
Merged

Add chat module skeleton#204
MaryammAli merged 2 commits into
BlockDash-Studios:mainfrom
Tim4evar:feature/chat-module

Conversation

@Tim4evar

@Tim4evar Tim4evar commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Closes #117

Summary
This PR implements the initial skeleton for the Chat module in the BackendAcademy. This module provides the foundational structure for supporting direct messages and chat rooms.

Changes

  • New Module: Created ChatModule to encapsulate all chat-related functionality.
  • Interfaces: Defined ChatRoom, Message, and ChatType in chat.interface.ts to provide strong typing for chat entities.
  • DTOs: Added CreateRoomDto and CreateMessageDto to standardize data input for room and message creation.
  • Service: Implemented ChatService with in-memory storage for managing rooms and messages, including methods for creation and retrieval.
  • Controller: Added ChatController to expose the following RESTful endpoints:
  • POST /chat/rooms: Create a new chat room (direct or group).
  • GET /chat/rooms: List all available chat rooms.
  • GET /chat/rooms/:roomId: Fetch details for a specific room.
  • POST /chat/messages: Send a new message to a room.
  • GET /chat/rooms/:roomId/messages: Retrieve the message history for a specific room.
  • Integration: Registered ChatModule in the root AppModule.

Motivation
This PR establishes the necessary architecture to fulfill the requirements of #117, providing a base for future enhancements such as database persistence, WebSocket support for real-time communication, and advanced room permissions.

Verification

  • The ChatModule is successfully integrated into the NestJS application.
  • The API endpoints are correctly mapped and follow the intended structure.

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@Tim4evar Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@MaryammAli MaryammAli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work

@MaryammAli MaryammAli merged commit 839740f into BlockDash-Studios:main Jun 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add chat module skeleton

2 participants