A web application that predicts placement packages based on CGPA using a linear regression model.
This application uses a simple linear regression model to predict the placement package a student might receive based on their CGPA. It features:
- User-friendly interface with modern design
- Real-time predictions
- Celebratory animations when predictions are made
- User counter that tracks total users and predictions
- Visitor tracking for analytics
- Feedback system for user comments
- Responsive design that works on mobile and desktop
- Backend: Flask (Python)
- Database: MongoDB Atlas (with fallback to file storage)
- Frontend: HTML, CSS, JavaScript
- CSS Framework: Bootstrap 4
- Animations: Canvas Confetti
- Icons: Font Awesome
- Deployment: Render
├── app.py # Main Flask application
├── templates/ # HTML templates
│ └── index.html # Main page template
├── static/ # Static assets
│ └── style.css # CSS styles
├── requirements.txt # Python dependencies
├── render.yaml # Render configuration
├── Procfile # For Gunicorn
└── README.md # Project documentation
- Clone the repository:
git clone https://github.com/yourusername/tr-placement-calculator.git
cd tr-placement-calculator
- Install dependencies:
pip install -r requirements.txt
- Run the application:
python app.py
- Visit
http://127.0.0.1:5000/in your browser.
This application is configured for easy deployment on Render:
- Push your code to a GitHub repository
- In Render dashboard, create a new Web Service
- Connect your GitHub repository
- Set up the MongoDB connection:
- Create a MongoDB Atlas account
- Set up a free cluster
- Create a database user
- Get your connection string
- Add it as the
MONGO_URIenvironment variable in Render
- Enter your CGPA and get an instant prediction
- Results are displayed with a celebration animation
- Based on a linear regression model
- Tracks unique users with cookies
- Counts total predictions made
- Stores visitor data for analytics
- Collects user feedback with a rating system
- Stores feedback in MongoDB for later review
- Includes name, email, message, and star rating
- Designed & Developed by Aman Sharma
The linear regression model follows the equation: