Real-time communication platform focused on backend architecture, real-time systems, containerized deployment, and DevOps workflows.
DevClustra is a real-time chat and collaboration platform built to explore modern backend engineering, distributed systems, and DevOps workflows.
The project focuses on:
- Real-time communication using Socket.IO
- JWT authentication architecture
- Conversation-based messaging systems
- Dockerized full-stack workflows
- CI/CD integration using Jenkins
- Cloud-native deployment practices
- Scalable backend architecture
This project was designed to understand how modern communication systems work internally while integrating practical DevOps concepts used in production-grade environments.
- JWT Authentication
- Access & Refresh Token flow
- HTTP-only secure cookies
- Persistent login sessions
- Protected routes
- Secure password hashing using bcrypt
- One-to-one conversations
- Real-time message delivery
- Online/offline user presence
- Unread message tracking
- Read receipts
- Conversation-based chat architecture
- Socket rooms for real-time updates
- Avatar uploads
- Cloudinary integration
- Secure media upload flow
Backend follows a modular architecture focused on scalability, maintainability, and separation of concerns.
Core architecture layers include:
- Controllers
- Services
- Middlewares
- Authentication Layer
- Conversation Layer
- Message Layer
- Socket Layer
- Next.js
- React
- Tailwind CSS
- shadcn/ui
- Socket.IO Client
- Zustand
- Axios
- Node.js
- Express.js
- MongoDB Atlas
- Mongoose
- Socket.IO
- JWT
- bcrypt
- Cloudinary
- Docker
- Docker Compose
- Docker Hub
- Jenkins
- AWS EC2 (planned)
- Kubernetes (planned)
- Terraform (planned)
- Prometheus & Grafana (planned)
DevClustra is fully containerized using Docker to ensure consistent development and deployment workflows.
Implemented DevOps workflow includes:
- Frontend Dockerization
- Backend Dockerization
- Docker Compose orchestration
- Docker networking
- Environment management
- Docker Hub image registry
- CI/CD integration workflow
Browser
β
Frontend Container (Next.js)
β
REST APIs + Socket.IO
β
Backend Container (Node.js + Express)
β
MongoDB AtlasCurrent CI/CD pipeline architecture:
GitHub Push
β
Jenkins Pipeline
β
Build Docker Images
β
Push Images to Docker Hub
β
Deployment WorkflowThis workflow helps automate:
- Build processes
- Image generation
- Deployment consistency
- Environment reproducibility
- Scalable deployment practices
Frontend (Next.js)
β
REST APIs + Socket.IO
β
Backend (Node.js + Express)
β
MongoDB Atlasdev-clustra/
β
βββ client/
β βββ app/
β βββ components/
β βββ store/
β βββ services/
β βββ lib/
β βββ public/
β βββ Dockerfile
β βββ .dockerignore
β βββ .env.local
β βββ .env.docker
β
βββ backend/
β βββ src/
β β βββ config/
β β βββ modules/
β β β βββ auth/
β β β βββ user/
β β β βββ conversation/
β β β βββ message/
β β βββ middlewares/
β β βββ helpers/
β β βββ routes/
β β βββ socket-server.js
β β βββ app.js
β β
β βββ Dockerfile
β βββ .dockerignore
β βββ .env
β βββ server.js
β
βββ docker-compose.yml
βββ README.mdNEXT_PUBLIC_API_BASE_URL=http://localhost:5000/api/v1NEXT_PUBLIC_API_BASE_URL=http://localhost:5000/api/v1PORT=
MONGO_URI=
JWT_SECRET=
JWT_ACCESS_TOKEN_EXPIRES=
JWT_REFRESH_TOKEN_EXPIRES=
CLIENT_URL=
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
RESEND_API_KEY=git clone https://github.com/alokumar01/dev-clustra.gitcd client
pnpm installcd backend
pnpm installpnpm devpnpm devdocker compose up --builddocker compose downDocker images are pushed to Docker Hub for deployment and CI/CD workflows.
Docker Hub repositories:
aalokumar01/dev-clustra-frontend
aalokumar01/dev-clustra-backendDocker workflow:
Dockerfile
β
Docker Build
β
Docker Image
β
Docker Hub Push
β
Deployment Workflow- Dockerized frontend & backend
- Docker Compose orchestration
- Docker networking
- Docker Hub workflow
- Jenkins CI/CD integration
- AWS EC2 deployment
- Kubernetes orchestration
- Terraform infrastructure provisioning
- Monitoring using Prometheus & Grafana
- Redis integration
This project focuses heavily on understanding:
- Real-time system design
- WebSocket architecture
- JWT authentication flow
- Refresh token mechanisms
- Socket rooms & presence systems
- Containerized workflows
- Docker networking
- CI/CD pipelines
- Cloud deployment workflows
- Modular backend architecture
- Scalable infrastructure concepts
DevClustra was built to explore practical software engineering concepts beyond traditional CRUD applications.
Primary focus areas include:
- Backend engineering
- Real-time communication systems
- DevOps workflows
- Container orchestration concepts
- Cloud deployment workflows
- Scalable architecture design
- Full Stack & DevOps Enthusiast
- Focused on Backend Engineering, Cloud, and Real-time Systems
https://github.com/alokumar01https://whoisalok.techhttps://github.com/alokumar01/dev-clustra