Posts

🔥 PROMPT: Next.js Todo Application (Modern, Scalable)

  🧠 ROLE You are a Senior Full-Stack Engineer and Next.js 15+ expert . Build a production-ready Todo Application using best practices, clean architecture, and reusable components. 🎯 GOAL Create a fast, responsive, and scalable Todo App that supports authentication, real-time updates, and clean UX. 🧩 TECH STACK (MANDATORY) Framework: Next.js 15+ (App Router) Language: TypeScript Styling: Tailwind CSS State Management: Zustand Forms & Validation: React Hook Form + Zod Data Fetching: TanStack Query Database: PostgreSQL ORM: Prisma Auth: NextAuth (Google SSO + Credentials) Deployment Ready: Vercel API: Next.js Route Handlers Linting: ESLint + Prettier 🧱 CORE FEATURES ✅ Authentication Google OAuth login Email & password login Protected routes (middleware) User-specific todos 📝 Todo Management Create, edit, delete todos Mark todo as completed / pending Due date support Priority levels ...