DevPain-AI
AI-powered developer pain-point analyzer
✦ Key Highlights
- Live and deployed on Netlify
- Real Gemini API integration
- Demonstrates AI Model Integration & Prompt Engineering
- Thoughtful prompt engineering for meaningful AI output
Overview
A live AI-powered tool that analyzes developer pain points. The only project that directly demonstrates AI Model Integration and Prompt Engineering skills through real Gemini API integration — not just a wrapper, but thoughtful prompt engineering for meaningful output.
Documentation
DevPain AI 🚀
DevPain AI is a SaaS web application designed to help students, beginners, and developers understand code in simple, human-friendly language. It uses Google's Gemini AI to break down complex logic into easy-to-understand explanations, analogies, and structured analysis.
!DevPain AI Screenshot Add a screenshot here
✨ Features
- Line-by-Line Breakdown: Hoverable code snippets with clear explanations.
- Logic Flow: Step-by-step execution path.
- Bad Practices: Detects inefficiencies, bugs, and security risks.
- Improved Version: Auto-refactors code with a "Copy" button.
🛠️ Tech Stack
gemini-2.5-flash / gemini-1.5-flash)jspdf (Client-side)⚙️ Prerequisites
🚀 Installation & Setup
1. Clone the Repository
``
bash
git clone
cd DevPain-AI
`2. Setup Backend
The backend handles the connection to the AI model.`bash
cd server
npm install
`Configuration:
Create a
.env file in the server directory:
`env
PORT=5001
GEMINI_API_KEY=your_actual_api_key_here
`3. Setup Frontend
The frontend is the React application.`bash
Go back to root
cd ..
npm install
`🏃♂️ How to Run
You need to run both the backend and frontend terminals.
Terminal 1 (Backend):
`bash
cd server
npm run dev
`
Server runs on: http://localhost:5001Terminal 2 (Frontend):
`bash
npm run dev
`
Frontend runs on: http://localhost:5173🔍 Troubleshooting
500 Internal Server Error:
- Check your .env file in the server folder.
- Ensure GEMINI_API_KEY is correct and has no extra spaces.
- Ensure you have internet access.
Port Conflicts:
- The backend uses port 5001. If it stays "Address in use", you can change the PORT in .env and restart.
AI Model Not Found:
- If gemini-2.5-flash fails, edit server/index.js and switch to gemini-1.5-flash`.🤝 Contributing
Feel free to fork and submit PRs!
Built with ❤️ for developers who feel the pain of legacy code.