A full-stack debugging assistant web app that helps developers debug their code using AI-powered analysis.
- 🔐 Authentication System: JWT-based authentication with secure cookie storage
- 💻 Code Editor: Paste and analyze your source code with syntax highlighting
- 📄 Log Upload: Upload log files or paste logs manually
- 📸 Screenshot Support: Upload screenshots for visual context
- 🤖 AI Analysis: Get detailed debug analysis using Google's Gemini AI
- 🎨 Modern UI: Beautiful interface with Tailwind CSS and DaisyUI
- 🌙 Theme Support: Multiple themes including dark mode
- 📱 Responsive Design: Works on desktop and mobile devices
- React.js - UI framework
- Tailwind CSS - Styling
- DaisyUI - Component library
- Framer Motion - Animations
- Axios - HTTP client
- React Hot Toast - Notifications
- Zustand - State management
- Express.js - Server framework
- MongoDB - Database
- Mongoose - ODM
- JWT - Authentication
- Bcrypt - Password hashing
- Multer - File uploads
- Cloudinary - Image storage
- Google Gemini AI - AI analysis
- Node.js (v16 or higher)
- MongoDB (local or cloud)
- Google Gemini API key
- Cloudinary account (for image uploads)
git clone <repository-url>
cd chat-appcd backend
npm installCreate a .env file in the backend directory:
PORT=5001
MONGODB_URI=mongodb://localhost:27017/debug-assistant
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
GEMINI_API_KEY=your-gemini-api-key-here
CLOUDINARY_CLOUD_NAME=your-cloudinary-cloud-name
CLOUDINARY_API_KEY=your-cloudinary-api-key
CLOUDINARY_API_SECRET=your-cloudinary-api-secret
cd frontend
npm installBackend:
cd backend
npm run devFrontend:
cd frontend
npm run devThe application will be available at:
- Frontend: http://localhost:5173
- Backend: http://localhost:5001
POST /api/auth/signup- User registrationPOST /api/auth/login- User loginPOST /api/auth/logout- User logoutGET /api/auth/check- Check authentication statusPUT /api/auth/update-profile- Update user profile
POST /api/debug/analyze- Analyze code with AI
- Sign Up/Login: Create an account or sign in
- Navigate to Debug: Click "Debug Now!" from the home page
- Paste Code: Enter your code in the code editor
- Add Context: Optionally upload logs or screenshots
- Analyze: Click "Analyze Now!" to get AI-powered insights
- Review Results: View detailed analysis and suggestions
https://www.youtube.com/watch?v=NNzj1ryFdRc&t
PORT- Server port (default: 5001)MONGODB_URI- MongoDB connection stringJWT_SECRET- Secret key for JWT tokensGEMINI_API_KEY- Google Gemini API keyCLOUDINARY_*- Cloudinary configuration (optional)
- Go to MONGODB
- And add the server details
- Sign up at Cloudinary
- Get your cloud name, API key, and API secret
- Add them to your
.envfile
debugger/
├── backend/
│ ├── src/
│ │ ├── controllers/ # Route controllers
│ │ ├── lib/ # Database, utilities
│ │ ├── middlewares/ # Authentication middleware
│ │ ├── models/ # MongoDB models
│ │ ├── routes/ # API routes
│ │ └── utils/ # Helper functions
│ └── package.json
├── frontend/
│ ├── src/
│ │ ├── component/ # React components
│ │ ├── pages/ # Page components
│ │ ├── store/ # Zustand stores
│ │ └── lib/ # Utilities
│ └── package.json
└── README.md
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License.
If you encounter any issues or have questions, please:
- Check the existing issues
- Create a new issue with detailed information
- Include error messages and steps to reproduce