- README.md - Project overview, features, and tech stack
- QUICK_START.md - Get running in 5 minutes
- COMPLETION_REPORT.md - Project summary and achievements
- SETUP_GUIDE.md - Detailed installation and troubleshooting
- .env.example - Environment variable template
- docker-compose.yml - Docker container orchestration
- ARCHITECTURE.md - System design, data flow, and diagrams
- PROJECT_SUMMARY.md - Implementation plan and overview
- requirements.txt - Python packages (backend)
- frontend/package.json - Node packages (frontend)
CodeMentorAI/
│
├── 📋 DOCUMENTATION (Start Here!)
│ ├── README.md ..................... Main documentation
│ ├── QUICK_START.md ................ 5-minute setup guide
│ ├── SETUP_GUIDE.md ................ Detailed installation
│ ├── ARCHITECTURE.md ............... System design
│ ├── PROJECT_SUMMARY.md ............ Implementation details
│ ├── COMPLETION_REPORT.md .......... Project completion summary
│ └── INDEX.md (this file) .......... Navigation guide
│
├── ⚙️ CONFIGURATION
│ ├── .env .......................... API keys & settings (configured)
│ ├── .env.example .................. Template for .env
│ ├── .gitignore .................... Git ignore rules
│ ├── requirements.txt .............. Python dependencies (67 packages)
│ └── docker-compose.yml ............ Docker container setup
│
├── 🔙 BACKEND (FastAPI + Python)
│ ├── Dockerfile .................... Backend container definition
│ └── app/
│ ├── __init__.py ............... Package initialization
│ ├── main.py ................... Main FastAPI application
│ ├── config.py ................. Configuration management
│ ├── api/
│ │ ├── routes/ ............... API route handlers
│ │ └── middleware/ ........... Request/response middleware
│ ├── services/
│ │ ├── groq_service.py ....... Groq API integration
│ │ ├── mcp_client.py ......... MCP server client
│ │ └── analysis_service.py ... Code analysis logic
│ ├── models/
│ │ ├── schemas.py ............ Pydantic data models
│ │ └── mongodb.py ............ MongoDB models
│ └── utils/
│ ├── prompts.py ............ LLM prompts
│ └── helpers.py ............ Utility functions
│
├── 🎨 FRONTEND (React + TypeScript)
│ ├── Dockerfile .................... Frontend container definition
│ ├── index.html .................... HTML entry point
│ ├── package.json .................. NPM dependencies (20+ packages)
│ ├── vite.config.ts ................ Vite build configuration
│ ├── tsconfig.json ................. TypeScript configuration
│ ├── tailwind.config.js ............ Tailwind CSS configuration
│ ├── postcss.config.js ............. PostCSS configuration
│ ├── .eslintrc.cjs ................. ESLint configuration
│ └── src/
│ ├── main.tsx .................. React entry point
│ ├── App.tsx ................... Main application component
│ ├── components/
│ │ ├── Header.tsx ............ Navigation header
│ │ ├── CodeEditor.tsx ........ Code input component
│ │ ├── ReviewPanel.tsx ....... Results display component
│ │ ├── History.tsx ........... Review history table
│ │ └── Analytics.tsx ......... Analytics dashboard
│ ├── hooks/
│ │ └── useReview.ts .......... Custom review hook
│ ├── services/
│ │ └── api.ts ................ API client
│ ├── store/
│ │ └── reviewStore.ts ........ Zustand state store
│ ├── styles/
│ │ └── globals.css ........... Global styles
│ └── types/
│ └── index.ts .............. TypeScript interfaces
│
└── 🔧 MCP SERVER (Future)
└── mcp_server/
├── server.py ................. MCP server
├── tools/
│ ├── code_parser.py ........ Code parsing
│ └── vulnerability_rules.py Security rules
└── resources/
└── rules/ ................ Analysis rules
- Header.tsx - Navigation tabs and branding
- CodeEditor.tsx - Monaco editor with language selection
- ReviewPanel.tsx - Display vulnerabilities and suggestions
- History.tsx - Table of past reviews
- Analytics.tsx - Dashboard with metrics
- main.py - FastAPI server with all endpoints
- config.py - Configuration from environment variables
- reviewStore.ts - Zustand store for UI state
- useReview.ts - Custom hook for review logic
- api.ts - Axios API client with streaming
- globals.css - Tailwind CSS + animations
- tailwind.config.js - Tailwind configuration
- postcss.config.js - PostCSS plugins
- .env - Your API keys and settings
- requirements.txt - Python package versions
- package.json - Node.js dependencies
- docker-compose.yml - Container orchestration
- Read README.md for overview
- Follow QUICK_START.md to run locally
- Check ARCHITECTURE.md for system design
- Explore frontend/src/ for React code
- Check backend/app/main.py for API logic
- Review SETUP_GUIDE.md for deployment
- Check docker-compose.yml for containers
- Read ARCHITECTURE.md for infrastructure
- Configure .env for your environment
- Use Dockerfile files for custom builds
- Check PROJECT_SUMMARY.md for ML strategy
- Review backend/app/main.py for Groq integration
- Check ARCHITECTURE.md for data flow
- Explore requirements.txt for ML packages
- Read README.md for features
- Check COMPLETION_REPORT.md for status
- Review ARCHITECTURE.md for capabilities
- See PROJECT_SUMMARY.md for roadmap
- Quick Setup: QUICK_START.md
- Detailed Setup: SETUP_GUIDE.md
- Project Overview: README.md
- Architecture: ARCHITECTURE.md
- Implementation: PROJECT_SUMMARY.md
- Completion Status: COMPLETION_REPORT.md
- API Endpoints: ARCHITECTURE.md (API Specifications section)
- Running Locally: QUICK_START.md
- Deployment: SETUP_GUIDE.md (sections 8-10)
- Frontend Code: frontend/src/
- Backend Code: backend/app/main.py
- Configuration: .env and config files
→ ARCHITECTURE.md - Complete system design with diagrams
→ SETUP_GUIDE.md - Sections on cloud deployment
→ frontend/src/ or backend/app/main.py directly
→ Edit .env file (see .env.example for template)
→ SETUP_GUIDE.md - Troubleshooting section
→ Run app and visit http://localhost:8000/docs
→ COMPLETION_REPORT.md - Complete summary
→ README.md - Technology section
→ ARCHITECTURE.md - Scaling strategy section
→ ARCHITECTURE.md - Request/Response Flow section
- README.md (understand what it is)
- QUICK_START.md (get it running)
- Open http://localhost:5173 in browser
- Submit code for review!
- ARCHITECTURE.md (see the big picture)
- PROJECT_SUMMARY.md (understand the plan)
- frontend/src/App.tsx (see main component)
- backend/app/main.py (see API implementation)
- SETUP_GUIDE.md (deployment details)
- docker-compose.yml (infrastructure)
- requirements.txt (dependencies)
- ARCHITECTURE.md (scaling strategies)
- App.tsx - Main component structure
- components/ - Component examples
- hooks/useReview.ts - Custom hook pattern
- store/reviewStore.ts - State management
- main.py - API routing and integration
- config.py - Configuration management
- Sample code shows async/await patterns
- docker-compose.yml - Multi-container setup
- Dockerfile files - Image definitions
- Shows networking, volumes, environment
- globals.css - Utility-first examples
- tailwind.config.js - Custom configuration
- Components use Tailwind classes
User → React Component → Zustand Store → API Client → Backend
↑ ↓
└──── SSE EventSource ← StreamResponse ←──┘
FastAPI Endpoint → Config → Groq API → Response → Frontend
↓
MongoDB (future)
Docker Compose → MongoDB + FastAPI + React → Browser
- Read README.md
- Follow QUICK_START.md
- Run
docker-compose up -d - Open http://localhost:5173
- Submit code for review
- Explore History tab
- Check Analytics tab
- Visit http://localhost:8000/docs
- Read ARCHITECTURE.md
- Review PROJECT_SUMMARY.md
Can't start the app? → SETUP_GUIDE.md → Troubleshooting section
Don't understand architecture? → ARCHITECTURE.md → System Architecture Diagram
Want to deploy? → SETUP_GUIDE.md → Production Deployment
Need API documentation? → http://localhost:8000/docs (when running)
Looking for a specific file? → Use file search or check the structure above
- Start Local: Follow QUICK_START.md
- Understand: Read ARCHITECTURE.md
- Explore: Open http://localhost:5173
- Deploy: Follow SETUP_GUIDE.md
- Extend: Modify code in frontend/src or backend/app
| Document | Purpose | Length | Read Time |
|---|---|---|---|
| README.md | Project overview | 400 lines | 10 min |
| QUICK_START.md | 5-minute setup | 400 lines | 5 min |
| SETUP_GUIDE.md | Detailed installation | 600 lines | 15 min |
| ARCHITECTURE.md | System design | 500 lines | 15 min |
| PROJECT_SUMMARY.md | Implementation plan | 400 lines | 10 min |
| COMPLETION_REPORT.md | Project completion | 400 lines | 10 min |
Total Documentation: 2,700+ lines
You'll know you're successful when:
✅ docker-compose up -d runs without errors
✅ http://localhost:5173 opens in browser
✅ You can submit code and get a review
✅ Results display in real-time
✅ History and Analytics tabs work
✅ API docs are available at /docs
Markdown Files: .md (documentation)
Frontend: .tsx, .ts (React TypeScript)
Backend: .py (Python)
Config: .json, .js, .env, .yml
Docker: Dockerfile, docker-compose.yml
- Never commit .env - It's in .gitignore
- Use .env.example - As template for team
- Keep API keys safe - Environment variables only
- Docker isolation - Services in containers
- Input validation - All endpoints validate