A comprehensive web application that uses AI to analyze design mockups and provide detailed feedback on UI/UX elements, accessibility, and user experience improvements.
- Docker Desktop installed and running
- Git (to clone the repository)
# Clone the repository
git clone https://github.com/Ajay702/Design-Sight.git
cd Design-Sight
# Start all services with Docker Compose
docker-compose -f docker-compose.simple-working.yml up
# Or run in detached mode (background)
docker-compose -f docker-compose.simple-working.yml up -d- Frontend: http://localhost:3000
- Backend API: http://localhost:5000
- Health Check: http://localhost:5000/health
# Stop all services
docker-compose -f docker-compose.simple-working.yml down
# Stop and remove volumes (clean slate)
docker-compose -f docker-compose.simple-working.yml down -v# View all logs
docker-compose -f docker-compose.simple-working.yml logs
# View specific service logs
docker-compose -f docker-compose.simple-working.yml logs backend
docker-compose -f docker-compose.simple-working.yml logs frontend
docker-compose -f docker-compose.simple-working.yml logs mongodb- AI-Powered Analysis: Uses Google Vision API to analyze design mockups
- Design Feedback: Provides detailed feedback on UI/UX elements
- Project Management: Organize designs into projects
- Image Upload: Support for various image formats (PNG, JPG, JPEG)
- Export Options: Export feedback as JSON for further analysis
- Real-time Status: Track analysis progress with status indicators
- Containerized Deployment: Full Docker support with MongoDB
- RESTful API: Complete backend API for all operations
- Responsive Frontend: React-based user interface
- Database Persistence: MongoDB for data storage
- Health Monitoring: Built-in health checks and monitoring
- Frontend: React.js, CSS3, HTML5
- Backend: Node.js, Express.js
- Database: MongoDB 7.0
- AI Service: Google Vision API
- Containerization: Docker & Docker Compose
- ODM: Mongoose for MongoDB operations
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β Frontend βββββΆβ Backend βββββΆβ MongoDB β
β (React) β β (Express) β β (Database) β
β Port: 3000 β β Port: 5000 β β Port: 27017 β
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β
βΌ
βββββββββββββββ
β Google β
β Vision API β
βββββββββββββββ
Design-Sight/
βββ backend/ # Node.js backend application
β βββ models/ # MongoDB data models
β βββ routes/ # API route handlers
β βββ utils/ # Utility functions (AI analyzer)
β βββ uploads/ # Image upload directory
β βββ tests/ # Backend tests
βββ frontend/ # React frontend application
β βββ src/ # Source code
β βββ public/ # Static assets
β βββ package.json # Frontend dependencies
βββ data/ # Persistent data (MongoDB, logs)
βββ docker-compose.simple-working.yml # Docker configuration
βββ README.md # This file
The application uses environment variables for configuration:
Backend (.env):
PORT=5000
MONGODB_URI=mongodb://admin:designsight123@mongodb:27017/designsight?authSource=admin
GOOGLE_CLOUD_PROJECT_ID=your-project-id
GOOGLE_APPLICATION_CREDENTIALS=path/to/service-account.json
FRONTEND_URL=http://localhost:3000Frontend (.env):
REACT_APP_API_URL=http://localhost:5000- Create a Google Cloud Project
- Enable Vision API
- Create a service account and download JSON key
- Place the key file in
backend/directory - Update the filename in
backend/config.js
# Backend tests
cd backend
npm test
# Frontend tests
cd frontend
npm testUse the health check endpoint to verify the backend:
curl http://localhost:5000/healthGET /api/projects- List all projectsPOST /api/projects- Create new projectGET /api/projects/:id- Get project detailsDELETE /api/projects/:id- Delete project
POST /api/projects/:id/images- Upload image to projectGET /api/projects/:id/images- List project imagesPOST /api/projects/:id/images/:imageId/analyze- Start AI analysisGET /api/projects/:id/images/:imageId/analysis/status- Check analysis status
GET /api/projects/:id/images/:imageId/feedback- Get analysis resultsPOST /api/projects/:id/images/:imageId/export/json- Export feedback as JSON
MongoDB Connection Failed:
- Ensure Docker Desktop is running
- Try:
docker-compose -f docker-compose.simple-working.yml down -v && docker-compose -f docker-compose.simple-working.yml up
Port Already in Use:
- Stop existing services:
docker-compose down - Check for running processes on ports 3000, 5000, 27017
Google Vision API Errors:
- Verify service account JSON file is present
- Check Google Cloud project has Vision API enabled
- Ensure billing is set up on Google Cloud project
# Check container status
docker ps
# View container logs
docker logs designsight-backend
docker logs designsight-frontend
docker logs designsight-mongodb
# Access MongoDB directly
docker exec -it designsight-mongodb mongosh -u admin -p designsight123 --authenticationDatabase admin- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Commit changes:
git commit -m 'Add feature' - Push to branch:
git push origin feature-name - Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
Ajay702
- GitHub: @Ajay702
- Repository: Design-Sight