An open API service indexing awesome lists of open source software.

https://github.com/lokeshkarra/student-rank-predictor-api

This Node.js API predicts student ranks based on their quiz history, providing insights into their performance through various metrics.
https://github.com/lokeshkarra/student-rank-predictor-api

axios express-js nodejs

Last synced: about 1 month ago
JSON representation

This Node.js API predicts student ranks based on their quiz history, providing insights into their performance through various metrics.

Awesome Lists containing this project

README

          

# ๐Ÿ“Š Student Rank Predictor

This project is a **Student Rank Predictor** based on **NEET quiz performance**. It analyzes quiz performance data, generates insights, and predicts ranks using historical data. Additionally, it provides **topic-wise performance analysis, weak area identification, and improvement trends**.

---

## ๐Ÿš€ Features

โœ… **Performance Analysis** โ€“ Computes accuracy, topic-wise performance, strengths, and weak areas.
โœ… **Weak Areas Identification** โ€“ Identifies topics where students struggle the most and suggests improvements.
โœ… **Improvement Trends** โ€“ Tracks quiz performance over time to observe trends in accuracy, speed, and scores.
โœ… **NEET Rank Prediction** โ€“ Predicts NEET Rank prediction based on past quiz performance over time. (โ—๏ธ Note : Rank is not accurate, soon machine learning model is added to improve results)

---

## ๐Ÿ›  Tech Stack

- **Backend**: Node.js, Express.js
- **Data Handling**: Axios (for fetching historical quiz data)
- **Version Control**: Git, GitHub

---

## ๐Ÿ’‚๏ธ Project Structure

```
/student-rank-predictor
โ”‚๏ธโ”€โ”€ /routes
โ”‚๏ธ โ”œโ”€โ”€ analysisRoutes.js # API endpoints for performance analysis
โ”‚๏ธ โ””โ”€โ”€ prediction.js
โ”‚๏ธ
โ”‚๏ธโ”€โ”€ /services
โ”‚๏ธ โ”œโ”€โ”€ analysisService.js # Core logic for analyzing performance
โ”‚๏ธ โ””โ”€โ”€ predictionService.js
โ”‚๏ธโ”€โ”€ package.json # Dependencies and scripts
โ”‚๏ธโ”€โ”€ server.js # Entry point for the backend
โ”‚๏ธโ”€โ”€.env # Environment variables file
โ””โ”€โ”€ README.md # Project documentation

```

---

## ๐Ÿš€ Installation & Setup

### > Clone the Repository
```bash
git clone https://github.com/your-username/student-rank-predictor.git
cd student-rank-predictor
```

### > Install Dependencies
```bash
npm install
```

### > Run the Server
```bash
npm start
```
By default, the server runs on **http://localhost:3000**.

---

## Environment Variables

This application uses the following environment variables:

- `PORT`: The port on which the server will listen (e.g., `3000`).
- `NODE_ENV`: The environment in which the application is running (e.g., `development`, `production`).
- `HISTORICAL_DATA_URL`: The URL for fetching historical quiz data.
- `CURRENT_QUIZ_URL`: The URL for fetching current quiz data.
- `QUIZ_SUBMISSION_URL`: The URL for fetching quiz submission data.

**Example .env file:**

---

## ๐Ÿ›  API Endpoints

| Endpoint | Method | Description |
|----------|--------|-------------|
| `/api/analysis/performance/:userId` | `GET` | Get detailed performance analysis of a student |
| `/api/analysis/weak-areas/:userId` | `GET` | Identify weak areas and recommended focus |
| `/api/analysis/improvement/:userId` | `GET` | Fetch improvement trends over time |
| `/api/prediction/rank/:userId` | `GET` | Predicts Neet rank based on performance |

๐Ÿ“Œ **Example Usage**
for userId : YcDFSO4ZukTJnnFMgRNVwZTE4j42
```bash
GET https://student-rank-predictor-api.onrender.com/api/analysis/performance/YcDFSO4ZukTJnnFMgRNVwZTE4j42
```

---

## ๐Ÿงช Testing the API

### **Using cURL**
```bash
curl -X GET https://student-rank-predictor-api.onrender.com/analysis/performance/YcDFSO4ZukTJnnFMgRNVwZTE4j42
```

### **Using Postman**
1. Open Postman
2. Make a `GET` request to `https://student-rank-predictor-api.onrender.com/analysis/performance/YcDFSO4ZukTJnnFMgRNVwZTE4j42`
3. View the JSON response

---

## ๐Ÿ“Œ Future Improvements

๐Ÿ”น Predicting potential **college admissions** based on performance and predicted rank.
๐Ÿ”น Implementing **ML-based rank prediction**.
๐Ÿ”น Improving **data visualization** for trends and analytics.

---

## ๐ŸŸ License

This project is licensed under the **MIT License**.

---

๐Ÿ’ก **Suggestions or Issues?**
Feel free to open an [issue](https://github.com/lokeshkarra/student-rank-predictor-api/issues) or contribute via a pull request! ๐Ÿš€