A location-based web application that helps office teams quickly decide where to eat lunch by suggesting nearby options filtered by group preferences, dietary requirements, and visit history.
This project serves as a teaching aid demonstrating how to transform a Product Requirements Document (PRD) into a comprehensive, implementation-ready documentation set using Cursor's AI-powered development workflow.
This project showcases a powerful development workflow:
- Start with a PRD - A clear, structured Product Requirements Document
- Create Cursor Rules - Define how the AI should interpret and expand the PRD
- Generate Comprehensive Documentation - Let Cursor create detailed implementation docs
- Build with Vibe-Coding - Use the documentation to guide AI-assisted development
βββββββββββββββββββ
β PRD (Input) β
ββββββββββ¬βββββββββ
β
ββββββββββΌβββββββββ
β Cursor Rules β
β (Generator) β
ββββββββββ¬βββββββββ
β
ββββββββββββββββββββββΌβββββββββββββββββββββ
β β β
βββββββββΌβββββββββ ββββββββββΌβββββββββ ββββββββββΌβββββββββ
β Implementation β β Data Model β β API Specs β
β Plan β β β β β
ββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β β β
ββββββββββββββββββββββΌβββββββββββββββββββββ
β
ββββββββββββββββββββββΌβββββββββββββββββββββ
β β β
βββββββββΌβββββββββ ββββββββββΌβββββββββ ββββββββββΌβββββββββ
β Frontend Docs β β Backend Docs β β UI/UX Specs β
β β β β β β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
lunch-chooser/
βββ docs/
β βββ lunch-tool-prd.md # Original PRD (input)
β βββ implementation.md # Master implementation plan
β βββ data_model.md # Complete database schema
β βββ api_specifications.md # API endpoint documentation
β βββ project_structure.md # Folder structure & conventions
β βββ uiux_doc.md # Design system & UI specs
β βββ frontend/
β β βββ pages/ # Page specifications
β β βββ shared_components/ # Component documentation
β βββ backend/
β βββ entities/ # Entity CRUD documentation
β βββ api_endpoints/ # Endpoint specifications
βββ .cursor/
β βββ rules/
β βββ implementation-plan-generator.mdc # Cursor rule for doc generation
βββ README.md # This file
The project starts with docs/lunch-tool-prd.md, a well-structured PRD that defines:
- Core problem and purpose
- Feature requirements (phased approach)
- User workflows
- Technical considerations
- Data model concepts
The implementation-plan-generator.mdc rule instructs Cursor on how to:
- Analyze the PRD systematically
- Extract features, entities, and pages
- Research appropriate tech stack
- Create comprehensive documentation structure
- Generate implementation stages with checkboxes
When prompted with the PRD and rule, Cursor generated:
implementation.md- Complete implementation plan with 6 stages, tech stack recommendations, and resource linksdata_model.md- Full database schema with PostgreSQL/PostGIS, relationships, indexes, and validation rulesapi_specifications.md- Complete API documentation with request/response formats, authentication, and error handlingproject_structure.md- Detailed folder structure, naming conventions, and file organizationuiux_doc.md- Design system, user flows, responsive design, and accessibility requirements
- 5 page specifications - Home, Restaurants, Lunch Group, Profile, Restaurant Detail
- 7 shared component docs - Navigation, Header, Cards, Filters, etc.
- 5 entity documents - User, Restaurant, Lunch Group, Vote, Visit History (with full CRUD)
- 3 API endpoint groups - User, Restaurant, Lunch Group endpoints
All documentation is interconnected and provides:
- β Clear implementation stages with checkboxes
- β Complete CRUD operations for all entities
- β Detailed page specifications
- β API endpoint documentation
- β Design system and UI/UX guidelines
- β Tech stack recommendations with documentation links
Based on the PRD analysis, the recommended stack includes:
- Frontend: Next.js 14 (App Router), TypeScript, Tailwind CSS, shadcn/ui
- Backend: Next.js API Routes, NextAuth.js
- Database: PostgreSQL with PostGIS extension
- ORM: Prisma
- External APIs: Google Places API
- Deployment: Vercel
See docs/implementation.md for complete tech stack justification and documentation links.
- Structured PRD - A well-organized PRD with clear phases, features, and data models
- Detailed Cursor Rules - Rules that guide the AI through systematic analysis
- Comprehensive Output - The rule generates interconnected documentation covering all aspects
- Implementation Ready - The docs provide everything needed to start building
With comprehensive documentation in place, you can:
- Ask Cursor to implement specific stages from
implementation.md - Reference entity docs when building CRUD operations
- Use page specs to guide component development
- Follow API specs for endpoint implementation
- Apply UI/UX guidelines for consistent design
This project demonstrates:
- Documentation as Code - Documentation is version-controlled and evolves with the project
- AI-Assisted Planning - Using AI to expand high-level requirements into detailed specs
- Systematic Approach - Breaking down a PRD into analyzable components
- Implementation Readiness - Documentation that's actually useful for development
- Vibe-Coding Workflow - Using AI tools effectively with proper context
To use this project:
- Review the PRD - Understand the original requirements
- Examine the Cursor Rule - See how it structures the analysis
- Explore the Documentation - See how the PRD was expanded
- Start Implementation - Use the docs to guide development with Cursor
- Setup Guide - Get started quickly with setup instructions
- Product Requirements Document
- Implementation Plan
- Data Model
- API Specifications
- Project Structure
- UI/UX Documentation
- Supabase Setup - Database setup guide
- Database Setup - Alternative local PostgreSQL setup
- Google Places API Setup - API configuration
- NextAuth v5 Setup - Authentication configuration
- Stage 2 Progress - Development progress tracking
- Stage 2 Complete - Completed features summary
This project is created for educational purposes as a teaching aid.
This project demonstrates the power of combining:
- Clear Requirements (PRD)
- Structured AI Guidance (Cursor Rules)
- Comprehensive Documentation (Generated Specs)
- AI-Assisted Development (Vibe-Coding with Cursor)
Note: This project is currently in the documentation phase. Implementation follows the stages outlined in docs/implementation.md.