A comprehensive AI-powered platform for email management, document summarization, and location finding.
- Email Management: Sort emails by priority and schedule events automatically
- Document Summary: Upload PDF, DOC, DOCX, or TXT files and get AI-generated summaries
- Location Finder: Find routes between your location and college destinations
.
├── Frontend/ # Next.js frontend application
│ ├── pages/ # Next.js pages (email, doc, map)
│ ├── components/ # React components (Navbar, NotificationDrawer, MapComponent)
│ ├── styles/ # Global styles and theme
│ └── pages/api/ # API proxy routes
│
└── backend/ # Express.js backend API
├── routes/ # API route definitions
├── controllers/ # Business logic controllers
├── agents/ # LLM agent (Ollama integration)
└── utils/ # Utility functions (PDF parser, map utils)
- Node.js (v18 or higher)
- npm or yarn
- Ollama (for AI features) - Download from https://ollama.ai
- Navigate to Frontend directory:
cd Frontend- Install dependencies:
npm install- Set up environment variables (
.env.local):
NEXT_PUBLIC_API_URL=http://localhost:5000
- Run development server:
npm run devFrontend will be available at http://localhost:3000
- Navigate to backend directory:
cd backend- Install dependencies:
npm install- Set up environment variables (
.env):
PORT=5000
OLLAMA_API_URL=http://localhost:11434
OLLAMA_MODEL=deepseek
GMAIL_CLIENT_ID=your_gmail_client_id_here
GMAIL_CLIENT_SECRET=your_gmail_client_secret_here
CORS_ORIGIN=http://localhost:3000
- Install and pull Ollama model:
# Make sure Ollama is installed and running
ollama pull deepseek- Run the server:
npm run devBackend will be available at http://localhost:5000
You can use Docker Compose to run both backend and Ollama:
cd backend
docker-compose upUpdate the college locations in backend/utils/mapUtils.js with your actual coordinates:
const COLLEGE_LOCATIONS = [
{ name: 'Library', lat: 12.9716, lng: 77.5946 },
// Add more locations...
]For email scheduling features, you'll need to:
- Create a project in Google Cloud Console
- Enable Gmail API and Calendar API
- Create OAuth 2.0 credentials
- Add credentials to
.envfile
- Frontend: Next.js, React, Tailwind CSS, Leaflet
- Backend: Express.js, Node.js
- AI: Ollama (DeepSeek model)
- File Processing: pdf-parse, mammoth
The platform uses a black/white/purple color scheme as specified in the design requirements.
- Frontend runs on port 3000
- Backend runs on port 5000
- Ollama runs on port 11434
- No authentication or database is implemented (stateless API)
- All data is processed in-memory
- Update environment variables before running in production