Skip to content
Charan Kumar Reddy
Distributed Systems / SDEComplete

Task & Chat Board

Real-time task and chat board in a TypeScript monorepo

Collaborative task board and team chat built during the IIT Madras full-stack internship: a TypeScript monorepo with an Express REST and WebSocket server, React with Zustand and TanStack Query, Redis caching with an in-memory fallback, Docker images and CI.

The problem

A team board with live chat has to keep task state consistent across users, stay usable when its cache or database is down, and ship as reproducible containers.

The approach

A TypeScript monorepo pairs an Express REST and WebSocket server with a React client using TanStack Query cache invalidation and a Zustand UI store, adds Redis caching with an in-memory fallback, and packages both sides as multi-stage Docker images tested in CI.

Architecture

  1. 01

    React client

    Kanban board, chat window and analytics dashboard in TypeScript; TanStack Query owns server state and invalidates task queries on every mutation, and Zustand holds UI filters.

  2. 02

    Express REST and WebSocket server

    TypeScript controllers for tasks, auth, chat and admin, with auth guards, upload limits and validators as middleware.

  3. 03

    Cache layer

    redisService caches task listings and clears keys on any mutation; an in-memory Map takes over when Redis is unreachable.

  4. 04

    Persistence

    Prisma with SQLite for tasks and users; Mongoose for chat and audit trails with an automatic JSON-file fallback when MongoDB is offline.

  5. 05

    Delivery

    Multi-stage Dockerfiles for the API and the Nginx-served client, docker-compose with MongoDB and Redis, and a GitHub Actions pipeline.

Key decisions

  • Invalidates query caches on every mutation instead of patching client state by hand, trading extra refetches for consistency.
  • Degrades to in-memory caching and file-based writes rather than failing requests when Redis or MongoDB is down.
  • Migrated the whole codebase to strict TypeScript so API contracts are checked at compile time on both sides.

Results

  • Deployed with live chat, subtasks, role-based admin audit logs and Recharts analytics for status, priority and workload.

How it is tested

  • GitHub Actions runs tests, type checks and builds for backend and frontend on every branch push.

Limits, stated plainly

  • Built as an internship curriculum project; no load or latency measurements are published.
  • The file-based fallback is single-instance and is not reconciled back into MongoDB.

Stack

TypeScriptReactExpressWebSocketsTanStack QueryZustandRedisPrismaDockerGitHub Actions