Skip to content

Tahir-yamin/todo_hackathon_phase2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

208 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ AI-Powered Todo Application - Hackathon Project

Production-Ready Cloud-Native Todo Application with AI Chatbot & Kubernetes Deployment

Deployment Phase Kubernetes License


πŸ”— Quick Links


🎯 Overview

A comprehensive todo management application that evolved from a simple console app to a production-ready cloud-native application deployed on Azure Kubernetes Service (AKS) with event-driven architecture.

Evolution Path: Console App β†’ Web App β†’ AI-Powered β†’ Kubernetes (Local) β†’ Cloud Production (AKS + Kafka + Dapr) βœ…

Current Status: Phase V Complete - Production deployment on Azure AKS with AI chat assistant, Kafka event streaming, and Dapr distributed runtime.


Hackathon.Phase5.Completion.-.Made.with.Clipchamp.1.mp4

⚑ Features

Core Functionality (Phase I-II)

  • βœ… Full CRUD Operations - Create, Read, Update, Delete tasks
  • βœ… User Authentication - Email, Google, GitHub OAuth
  • βœ… Multi-User Support - Isolated task management
  • βœ… Task Organization - Priorities, categories, due dates
  • βœ… Search & Filter - Find tasks quickly
  • βœ… Kanban Board - Drag-and-drop interface

AI-Powered Features (Phase III)

  • πŸ€– Natural Language Processing - "Add task to buy milk tomorrow"
  • πŸ“… Smart Date Extraction - Understands "next Friday", "in 2 days"
  • 🎯 Auto-Prioritization - Detects urgency from context
  • 🏷️ Category Inference - Automatic task categorization
  • πŸ’¬ Conversational Interface - Chat widget for task management
  • ♾️ Unlimited AI - Free tier with OpenRouter + Mistral

Cloud-Native Features (Phase IV)

  • ☸️ Kubernetes Orchestration - Auto-healing, rolling updates
  • 🐳 Docker Containerization - Multi-stage optimized builds
  • πŸ“¦ Helm Package Management - Version-controlled deployments
  • πŸ”§ ConfigMaps - Externalized configuration
  • πŸ’š Health Probes - Liveness & readiness checks
  • πŸ“Š Resource Management - CPU/memory limits & requests

⭐ NEW: Phase V - Production Cloud (Complete) βœ…

  • ☁️ Azure AKS Deployment - Production-ready cloud infrastructure
  • πŸ“¨ Kafka Event Streaming - Event-driven architecture with Strimzi
  • πŸ”„ Dapr Integration - Distributed runtime for reliable messaging
  • πŸ€– AI Chat Working - All MCP tools functional
  • πŸ’° Resource Optimized - 60% CPU reduction (single-node deployment)
  • πŸš€ CI/CD Pipeline - Automated GitHub Actions deployment
  • πŸ“š 30 Production Skills - Documented and reusable
  • πŸ”§ 3 Executable Workflows - With turbo annotations

πŸ› οΈ Tech Stack

Application

  • Frontend: Next.js 15 (React, TypeScript, Tailwind CSS)
  • Backend: FastAPI (Python, SQLModel)
  • Database: PostgreSQL (on AKS)
  • AI: OpenRouter + Mistral (free tier)
  • Auth: Better Auth (Email, Google, GitHub)

Cloud-Native (Phase IV-V)

  • Containerization: Docker (multi-stage builds)
  • Orchestration: Kubernetes (Azure AKS)
  • Package Manager: Helm Charts
  • Event Streaming: Kafka (Strimzi operator)
  • Distributed Runtime: Dapr (Pub/Sub, State)
  • Container Registry: Azure Container Registry
  • CI/CD: GitHub Actions

πŸ“Š Project Phases

βœ… Phase I: Console Application (Complete)

Duration: 1 week | Completion: Dec 7, 2025

  • Python CLI with in-memory storage
  • Basic CRUD operations
  • Clean code architecture

βœ… Phase II: Full-Stack Web App (Complete)

Duration: 1 week | Completion: Dec 14, 2025

  • Next.js responsive frontend
  • FastAPI REST backend
  • PostgreSQL database
  • Better Auth authentication
  • Multi-user support

βœ… Phase III: AI-Powered Chatbot (Complete)

Duration: 1 week | Completion: Dec 21, 2025

  • Natural language processing
  • Smart metadata extraction
  • Function calling for task ops
  • Unlimited AI quota

βœ… Phase IV: Kubernetes Deployment (Complete)

Duration: 2 weeks | Completion: Dec 30, 2025

Implementation:

  • βœ… Multi-stage Docker builds (Frontend: 485MB, Backend: 245MB)
  • βœ… Kubernetes manifests (3 deployments, 3 services)
  • βœ… Helm charts (400+ lines values.yaml)
  • βœ… ConfigMaps for configuration
  • βœ… Health probes & resource limits
  • βœ… Gordon AI tested & documented
  • βœ… kubectl-ai/kagent guides

Documentation (70,000+ words):

  • Deployment guide (15,000 words)
  • Spec history (10,000 words)
  • Gordon AI guide (8,000 words)
  • 22 operational workflows
  • Security audit procedures

βœ… Phase V: Cloud Production (Complete) πŸŽ‰

Duration: 2 weeks | Completion: Jan 18, 2026

Achievements:

  • βœ… Azure AKS Deployment - Production single-node cluster
  • βœ… Kafka + Dapr - Event-driven architecture
  • βœ… 3 Critical Bugs Fixed:
    • Undefined reminder functions (commit: ac1e2dd)
    • Async/await mismatch (commit: 8c14249)
    • AttributeError on remind_at (commit: c36aaa5)
  • βœ… Resource Optimization - 60% CPU reduction (750m β†’ 300m)
  • βœ… AI Chat 100% Working - All MCP tools functional
  • βœ… CI/CD Pipeline - Automated GitHub Actions
  • βœ… Documentation - 30 skills + 3 workflows captured

Live Demo: http://128.203.86.119:3000

Evidence: See PHASE5_DEMO_DOCUMENTATION.md for complete proof


πŸš€ Quick Start

Prerequisites

For Web App (Phase II-III):

- Node.js 20+
- Python 3.13+
- PostgreSQL (or Neon account)
- OpenRouter API key (free)

For Kubernetes (Phase IV-V):

- Azure subscription (for AKS)
- Docker & kubectl
- Helm 3.13+
- Azure CLI

Installation & Running

Local Development:

# Clone repository
git clone https://github.com/Tahir-yamin/todo_hackathon_phase2.git
cd todo_hackathon_phase1

# Backend
cd phase2/backend
pip install -r requirements.txt
cp .env.example .env  # Edit with your credentials
uvicorn main:app --reload

# Frontend (new terminal)
cd phase2/frontend
npm install
cp .env.example .env.local  # Edit with your credentials
npm run dev

# Access: http://localhost:3000

Deploy to AKS (Phase V):

# See complete workflow:
.agent/workflows/deploying-to-aks.md

# Quick deploy:
helm upgrade --install todo-chatbot ./phase4/helm/todo-chatbot \
  -n todo-chatbot \
  -f ./phase4/helm/todo-chatbot/values-optimized-cpu.yaml

πŸ“š Documentation

Main Documentation

Document Description Words
README.md This file - project overview 3,000
PHASE5_DEMO_DOCUMENTATION.md NEW Phase V evidence & demo guide 5,000
CLAUDE.md Spec-driven development process 8,500
CONSTITUTION.md Project principles & architecture 5,000

Phase V Documentation (NEW)

Document Description Skills
.claude/mcp-debugging-skills.md MCP tool debugging 5
.claude/kubernetes-resource-optimization-skills.md K8s optimization 5
.claude/dapr-configuration-skills.md Dapr setup & troubleshooting 5
.claude/helm-configuration-skills.md Helm best practices 5
.claude/openrouter-api-skills.md AI API integration 5
.claude/python-async-patterns-skills.md Async/await patterns 5

Phase V Workflows (NEW)

Workflow Description
.agent/workflows/deploying-to-aks.md Complete AKS deployment
.agent/workflows/github-actions-deployment-verification.md Post-deploy checks
.agent/workflows/fixing-chat-ui-errors.md AI chat debugging

Phase IV Documentation

Document Description Words
phase4/MANUAL-OPERATIONS-GUIDE.md Complete deployment guide 15,000
phase4/docs/GORDON-AI-GUIDE.md Docker AI Agent integration 8,000
specs/phase4/SPECIFICATION-HISTORY.md Complete spec evolution 10,000
.agent/workflows/ 25 operational workflows 25,000+

Total Documentation: 80,000+ words (Phase IV: 70K + Phase V: 10K)


πŸ—οΈ Architecture (Phase V)

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              Azure AKS Cluster                  β”‚
β”‚           (Single Node - 2 vCPU)                β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Frontend (Next.js)  β”‚  Backend (FastAPI)       β”‚
β”‚  Port: 3000          β”‚  Port: 8000              β”‚
β”‚  CPU: 100m           β”‚  CPU: 100m               β”‚
β”‚                      β”‚  + Dapr Sidecar (100m)   β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  PostgreSQL          β”‚  Kafka (Strimzi)         β”‚
β”‚  CPU: 100m           β”‚  Event Streaming         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
            ↓                      ↓
     GitHub Actions          Dapr Pub/Sub

Resource Optimization: 60% CPU reduction enables single-node deployment


πŸŽ‰ Hackathon Submission

Phase V Deliverables βœ… NEW

  • Azure AKS Deployment - Production cloud infrastructure
  • Kafka Event Streaming - Strimzi operator
  • Dapr Integration - Distributed runtime
  • 3 Critical Bugs Fixed - All documented with evidence
  • Resource Optimization - 60% CPU reduction
  • AI Chat 100% Working - All commands functional
  • CI/CD Pipeline - GitHub Actions automated
  • 30 Skills Documented - Production-tested and reusable
  • 3 Executable Workflows - With turbo annotations
  • Demo Documentation - Complete with evidence

Phase IV Deliverables βœ…

  • Docker Containerization - Multi-stage, optimized
  • Kubernetes Deployment - Local K8s running
  • Helm Charts - Version-controlled
  • All Features Working - CRUD + AI chatbot
  • Gordon AI - Tested and documented
  • Comprehensive Documentation - 70,000+ words
  • Security Audit - 100% pass

Bonus Achievements

  • ✨ 25 operational workflows
  • ✨ Spec-driven development demonstrated
  • ✨ Production deployment (Azure AKS)
  • ✨ Event-driven architecture (Kafka + Dapr)
  • ✨ 80,000+ words documentation
  • ✨ Level 4/5 cloud-native maturity

πŸ”§ Key Commands

Development

# Run backend
cd phase2/backend && uvicorn main:app --reload

# Run frontend
cd phase2/frontend && npm run dev

Kubernetes (Phase V)

# Get pod status
kubectl get pods -n todo-chatbot

# View backend logs
kubectl logs -l app=backend -n todo-chatbot -c backend

# Check resource usage
kubectl top pods -n todo-chatbot

# Deploy/upgrade with Helm
helm upgrade --install todo-chatbot ./phase4/helm/todo-chatbot \
  -n todo-chatbot \
  -f ./phase4/helm/todo-chatbot/values-optimized-cpu.yaml

πŸ› Troubleshooting

See .agent/workflows/fixing-chat-ui-errors.md for common issues.

Quick Fixes:

  • Pods Pending: Use values-optimized-cpu.yaml
  • AI Chat Errors: Check backend logs for MCP errors
  • MCP Tool Failures: Test locally with python -c "from mcp_server import mcp"

πŸ‘¨β€πŸ’» Developer

Tahir Yamin


πŸ™ Acknowledgments

  • Panaversity - Hackathon organizers
  • Claude Code - Spec-driven development
  • OpenRouter - AI API access
  • Azure - AKS free tier
  • Dapr Community - Resource optimization guidelines
  • Strimzi Project - Kafka operator

πŸ“„ License

MIT License - See LICENSE file


πŸ“… Project Timeline

Phase Duration Status Completion
Phase I 1 week βœ… Complete Dec 7, 2025
Phase II 1 week βœ… Complete Dec 14, 2025
Phase III 1 week βœ… Complete Dec 21, 2025
Phase IV 2 weeks βœ… Complete Dec 30, 2025
Phase V 2 weeks βœ… Complete Jan 18, 2026

⭐ Star this repo if you found it helpful!
πŸ› Found a bug? Open an issue!
πŸ’‘ Have suggestions? Submit a PR!

Built with ❀️ for Panaversity Hackathon II
Demonstrating spec-driven development & cloud-native architecture


πŸ“ˆ Stats: 80,000+ words documentation | 30 Phase V skills | 25 workflows | 100% security audit | Level 4/5 cloud-native maturity | Production on Azure AKS ☁️

About

AI-Powered Todo Application - Hackathon Project Production-Ready Cloud-Native Todo Application with AI Chatbot & Kubernetes Deployment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors