Quick Setup Guide
π Getting Started in 5 Minutes
Step 1: Install Dependencies
Backend:
cd backend
npm install
Frontend:
cd frontend
npm install
Step 2: Get Gemini API Key
- Go to Google AI Studio
- Create a new API key
- Copy the API key
Step 3: Configure Environment
Edit backend/.env:
GEMINI_API_KEY=paste_your_api_key_here
MONGODB_URI=mongodb://localhost:27017/rag-document-analysis
PORT=5000
CLIENT_URL=http://localhost:5173
Step 4: Start MongoDB
Option A: Local MongoDB
mongod
Option B: MongoDB Atlas (Cloud)
- Create free cluster at MongoDB Atlas
- Get connection string
- Update
MONGODB_URIin.env
Step 5: Run the Application
Terminal 1 - Backend:
cd backend
npm run dev
Terminal 2 - Frontend:
cd frontend
npm run dev
Step 6: Test with Sample Data
- Open browser:
http://localhost:5173 - Upload the
sample_training_data.csvfile - Wait for analysis (30-60 seconds)
- View dashboard and download report
π― Testing Checklist
- Backend server running on port 5000
- Frontend running on port 5173
- MongoDB connected successfully
- Upload sample CSV file
- View analysis dashboard
- Download PDF report
- Check report format
β οΈ Common Issues
Issue: "MongoDB connection failed"
Solution: Make sure MongoDB is running or use MongoDB Atlas
Issue: "Gemini API error"
Solution: Check if API key is valid and has quota
Issue: "Cannot upload file"
Solution: Check file size (max 10MB) and format (PDF/Excel/CSV)
Issue: "Port already in use"
Solution: Change port in .env or kill existing process
π Need Help?
Check the main README.md for detailed documentation.
Team JARVIS GGV | SIH 2025