Moeen Chat Service - v1.0.0 Moeen Chat
A modular, scalable chat application built with NestJS , TypeORM, and Redis. This project is designed for extensibility, maintainability, and performance.
Features
Modular architecture (Chat, Message, User, Document, Common)
RESTful API controllers
DTO-based validation and transformation
TypeORM integration for database access
Redis and in-memory caching support
Custom decorators, guards, and filters
Queue and scheduler modules for background tasks
Centralized configuration management
Project Structure
src / app . controller . ts app . module . ts data - source . ts main . ts chat / common / config / database / document / message / user /
Copy
chat/ : Chat domain logic, controllers, services, DTOs
message/ : Messaging logic, entities, and services
user/ : User roles, guards, and decorators
document/ : Document management
common/ : Shared modules, utilities, cache, queue, scheduler, decorators, DTOs, filters
Getting Started
Install dependencies
npm install
Copy
Configure environment
Copy .env.example to .env and set your variables.
Run the application
npm run start:dev
Copy
Scripts
start:dev - Run in development mode
start:prod - Run in production mode
test - Run tests
Configuration
Database: See src/config/database.config.ts
Redis: See src/config/redis.config.ts
License
MIT