A FastAPI-based backend system with React frontend for recommending colleges to JEE aspirants based on their ranks, preferences, and other criteria.
- Dynamic Data Loading: Loads college and cutoff data from Excel files (.xlsx) placed in the
/datafolder - Smart Recommendations: Uses multiple factors including rank, distance, institute type, and branch preferences
- Distance Calculation: Calculates distances between home state and colleges using geopy
- File Upload: API endpoint to upload and replace Excel data files
- Comprehensive Filtering: Filter by rank, category, gender, state, institute type, and branches
- Docker Support: Ready for containerized deployment
- Modern React Interface: Clean, responsive UI built with React and TypeScript
- Interactive College Cards: Detailed college information with quota breakdowns
- Quick Stats Dashboard: Real-time statistics showing IIT, NIT, IIIT, and GFTI options
- Advanced Filtering: Sort by match score, closing rank, or distance
- CSV Export: Download recommendations as CSV files
- Dark/Light Theme: Toggle between themes for better user experience
- Real-time Search: Filter colleges by institute type dynamically
The application includes a comprehensive Quick Stats dashboard that provides real-time insights into your college recommendations:
- IIT Options: Number of Indian Institutes of Technology available
- NIT Options: Number of National Institutes of Technology available
- IIIT Options: Number of Indian Institutes of Information Technology available
- GFTI Options: Number of Government Funded Technical Institutes available
This dashboard helps students quickly understand the distribution of different institute types in their recommendations and make informed decisions about their college choices.
Accepts student preferences and returns matching college recommendations.
Request Body:
{
"rank": 23000,
"category": "OBC",
"gender": "Female-only",
"home_state": "Tamil Nadu",
"preferred_institutes": ["NIT", "IIIT"],
"preferred_branches": ["CSE", "ECE"],
"max_distance_km": 500,
"priority_preference": "rank"
}Returns available filter options from the loaded Excel data.
Upload new Excel files to replace existing data.
Get summary statistics of loaded data.
Health check endpoint.
- Clone the repository
- Install Python dependencies:
pip install -r requirements.txt- Create data directory and add Excel files:
mkdir data
# Place your Excel files (iit_combined.xlsx, nit_combined.xlsx, etc.) in the data folder- Copy environment variables:
cp .env.example .env- Run the backend application:
uvicorn main:app --reload- Navigate to the project directory and install Node.js dependencies:
npm install- Start the development server:
npm run dev- Open your browser and visit
http://localhost:5173(or the port shown in the terminal)
- Build and run with Docker Compose:
docker-compose up --build- Or build and run with Docker:
docker build -t jee-recommender .
docker run -p 8000:8000 -v ./data:/app/data jee-recommenderThe system expects Excel files with the following columns (column names are flexible):
- Institute/College Name: Name of the institute
- Branch/Course: Academic branch/course name
- Category: Student category (GENERAL, OBC, SC, ST, EWS)
- Gender: Gender requirement (Male-only, Female-only, Gender-Neutral)
- State: State where the college is located
- Quota: Quota type (HS for home state, AI for all India)
- Opening Rank: Opening rank for admission
- Closing Rank: Closing rank for admission
- Year: Academic year for the data
The system uses a multi-factor scoring algorithm:
- Rank Safety: Primary factor based on the gap between student rank and closing rank
- Institute Preference: Bonus points for preferred institute types
- Branch Preference: Bonus points for preferred branches
- Distance: Proximity bonus for nearby colleges
- Home State Quota: Additional points for home state colleges
DATA_FOLDER_PATH: Path to the folder containing Excel files (default: "data")MAX_RECOMMENDATIONS: Maximum number of recommendations to return (default: 50)GEOCODING_TIMEOUT: Timeout for geocoding requests (default: 10)LOG_LEVEL: Logging level (default: "INFO")
Once the server is running, visit:
- Swagger UI:
http://localhost:8000/docs - ReDoc:
http://localhost:8000/redoc
🔥 Important: This system does NOT use hardcoded data. All college information must be provided through Excel files placed in the /data folder.
Place your Excel files with names like:
iit_combined.xlsxnit_combined.xlsxiiit_combined.xlsxgfti_combined.xlsx
The API includes comprehensive error handling for:
- Invalid input data
- Missing Excel files
- Geocoding failures
- Data processing errors
The application logs all important events including:
- Data loading status
- Recommendation requests
- Error conditions
- Performance metrics
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License.