Skip to content

Omcodesk/TaskFlowAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

๐Ÿš€ TaskFlow AI

A Full-Stack Project Management & Real-Time Kanban Platform powered by AI

Real-Time Collaboration ยท AI Task Contextualization ยท Role-Based Access Control

Live Demo React Node.js Express.js MongoDB

Deployed: Vercel UI: Tailwind Auth: JWT Realtime: Socket.io AI: Groq Llama 3


TaskFlow AI Admin Dashboard Overview

๐ŸŒ Live Demo ยท ๐Ÿ› Report Bug ยท ๐Ÿ’ก Request Feature ยท ๐Ÿ“– Contributing


๐Ÿ“‹ Table of Contents


๐Ÿ”Ž Overview

TaskFlow AI is a distributed, real-time employee and project management ecosystem designed to eliminate friction in modern agile workflows. Engineered with the MERN stack and designed for massive concurrency, it transforms static task lists into a living, breathing workspace.

By natively integrating Llama-3 via the Groq API, the platform autonomously acts as a virtual Project Managerโ€”breaking down complex directives into actionable checklists, intelligently routing tasks, and automatically assigning priorities.

Designed from the ground up to demonstrate production-ready Full-Stack proficiency, event-driven architecture, AI/ML API integration, and seamless 3rd-party deployments across Vercel and Render.


๐Ÿ“ธ Application Showcase

๐Ÿค– AI-Powered Task Generation

Instead of managers spending hours writing tickets, the AI reads a 3-word title and instantly generates a highly-technical, markdown-formatted sub-task checklist. It also automatically infers priority. AI Task Generation in Action

โšก Real-Time Drag-and-Drop Kanban Board

Built on WebSockets (Socket.io). When an admin drags a card across the board, the exact pixel-perfect update instantly reflects on all connected employee screens globally without any HTTP polling. Real-Time Drag and Drop Kanban Board

๐Ÿ“ˆ Global Analytics & Metrics

Aggregating thousands of task data points from MongoDB into beautiful, interactive Recharts visualizations to track team velocity and workload distribution. Interactive Analytics Dashboard

๐Ÿ“‚ Dynamic Project Workspaces

Strict JSON Web Token (JWT) stateless authentication delineates Admin privileges from Employee execution boundaries, ensuring data integrity across multiple active project environments. Projects Dashboard


๐Ÿ› ๏ธ Tech Stack

Frontend

  • React (Vite): Fast, modern UI library for rendering dynamic interfaces.
  • Tailwind CSS: Utility-first styling for highly responsive layouts.
  • Framer Motion: Smooth micro-animations and transitions.
  • Hello-Pangea/dnd: Robust drag-and-drop mechanics for the Kanban board.
  • Recharts: Interactive and highly customizable data visualizations.

Backend

  • Node.js & Express.js: Scalable server architecture.
  • MongoDB & Mongoose: Flexible NoSQL database and Object Data Modeling.
  • Socket.io: Duplex WebSockets for real-time state synchronization.
  • Groq API (Llama-3.1): High-speed LLM integration for AI-powered generation.

DevOps & Security

  • JSON Web Tokens (JWT): Stateless authentication.
  • Bcrypt: Cryptographic password hashing.
  • Vercel: Edge-network frontend deployment.
  • Render: PaaS backend hosting.

โœจ Core Features & Capabilities

  • ๐Ÿง  Autonomous AI Task Orchestration: Seamlessly integrates with the lightning-fast Groq API (Llama-3.1). Submit a vague task, and the AI automatically infers priority, categorizes the workload, and generates structured checklists.
  • โšก Zero-Latency WebSockets Synchronization: Event-driven architecture replaces standard REST polling. Every drag, drop, and status change is broadcasted via a duplex Socket.io connection to all connected clients.
  • ๐Ÿ” Multi-Tier Authorization & RBAC: Employs middleware-level route protection delineating Admin privileges (user approval, global analytics) from Employee execution boundaries. Includes a robust manual Admin Approval Workflow to prevent unauthorized registration.
  • ๐Ÿ“Š Interactive Analytics Engine: Leverages Recharts to process unstructured NoSQL data into actionable insights, featuring dynamic burndown charts and real-time status distributions.

๐Ÿ† Technical Highlights (For Recruiters & Engineers)

As a Full-Stack Software Engineer, this project was architected to solve complex, real-world engineering challenges:

  • ๐Ÿค– Prompt Engineering & Deterministic AI: Architected a custom API wrapper that enforces strict formatting outputs from LLMs. The AI acts as an autonomous PM, successfully converting ambiguous user inputs into 10-step actionable technical checklists with calculated priorities.
  • ๐ŸŽ๏ธ Race-Condition Mitigation: Overcame race conditions in React state management by decoupling local optimistic UI updates from the server-side WebSocket broadcasts, resulting in a butter-smooth drag-and-drop experience (@hello-pangea/dnd).
  • ๐Ÿ›ก๏ธ Security & Data Integrity: Implemented production-level security including JWT stateless authentication, bcrypt password hashing, strict CORS policies, environment variable encryption, and robust Mongoose Schema validation.
  • ๐Ÿ“ฑ Responsive UI/UX Engineering: Built a complex, heavy-data React dashboard utilizing custom Tailwind CSS grids, Flexbox layouts, and Framer Motion micro-animations that remains entirely functional on mobile devices.

๐Ÿ—๏ธ System Architecture & Directory Structure

TaskFlow AI is a monorepo divided into a decoupled client and server to allow independent horizontal scaling.

Task-Assignment-Workflow-Management-System/
โ”œโ”€โ”€ ems/ (Client Application)
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ api/          # Axios interceptors and centralized REST API calls
โ”‚   โ”‚   โ”œโ”€โ”€ components/   # Modular, reusable React components (Auth, Dashboard, Modals)
โ”‚   โ”‚   โ”œโ”€โ”€ context/      # React Context for global state (AuthContext, SocketContext)
โ”‚   โ”‚   โ””โ”€โ”€ utils/        # Helper functions and formatter utilities
โ”‚   โ”œโ”€โ”€ package.json      # Vite & React dependencies
โ”‚   โ””โ”€โ”€ tailwind.config.js# Custom design system tokens
โ”‚
โ””โ”€โ”€ ems/backend/ (Server Application)
    โ”œโ”€โ”€ controllers/      # Business logic (aiController, taskController, userController)
    โ”œโ”€โ”€ middleware/       # JWT verification, Role-based access checks, Error handling
    โ”œโ”€โ”€ models/           # Mongoose NoSQL Schemas (User, Task, Project)
    โ”œโ”€โ”€ routes/           # Express API route definitions
    โ”œโ”€โ”€ .env              # Encrypted secrets (Mongo URI, Groq API Key, JWT Secret)
    โ””โ”€โ”€ index.js          # Express server initialization and Socket.io mounting

Flow Architecture

graph TD
    Client[React + Vite Frontend] <-->|REST API + WebSockets| Server[Node.js + Express Backend]
    Server <-->|Mongoose ODM| DB[(MongoDB Atlas Cloud)]
    Server <-->|Groq API| AI[Llama-3.1 LLM]
    Client -->|Deployed on| Vercel[Vercel Edge Network]
    Server -->|Hosted on| Render[Render PaaS]
Loading

๐ŸŽฎ Live Demonstration

The application is fully deployed. Because the backend is hosted on a free cloud tier, it may take ~50 seconds for the server to wake up on your first click.

๐ŸŒ Live URL: https://task-flow-ai-self.vercel.app

Demo Access Controls

For convenience during evaluation, the platform includes pre-configured portals. Bypass the registration workflow by clicking the "Test as Admin" or "Test as Employee" buttons on the login screen.


๐Ÿ’ป Local Development Setup

If you wish to run the architecture locally for code review:

1. Repository Initialization

git clone https://github.com/Omcodesk/Task-Assignment-Workflow-Management-System.git
cd Task-Assignment-Workflow-Management-System/ems

2. Backend Bootstrapping

cd backend
npm install

# Create environment configuration
cat << EOF > .env
NODE_ENV=development
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=super_secure_secret_token
GROQ_API_KEY=your_groq_llama3_key
EOF

# Initialize Database with Seed Data
node seedDemo.js

# Start Development Server
npm run dev

3. Frontend Compilation

# Open a new terminal instance
cd ../
npm install
npm run dev

Navigate to http://localhost:5173.


Engineered by Om Chaddha
Software Developer | Full-Stack Engineer | AI/ML Enthusiast

About

TaskFlow AI ๐Ÿค– โ€” An enterprise-grade, full-stack project management platform. Features real-time WebSockets synchronization โšก, autonomous AI task orchestration (Groq Llama-3) ๐Ÿง , dynamic analytics ๐Ÿ“ˆ, and strict RBAC JWT security.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages