A web application for calculating GPA (Grade Point Average) and CGPA (Cumulative Grade Point Average) with local storage for your calculations.
- GPA Calculator: Calculate semester GPA based on course grades and credits
- CGPA Calculator: Calculate cumulative GPA across multiple semesters
- Local Storage: Save your calculations to browser storage
- Responsive Design: Works on desktop and mobile devices
- No Authentication: Use immediately without signup
- Frontend: HTML, Tailwind CSS, JavaScript
- Backend: Python Flask
- Database: SQLite
- Authentication: JWT (JSON Web Tokens)
-
Install Python dependencies:
pip install -r requirements.txt
-
Install Node.js dependencies and build CSS:
npm install npx tailwindcss -i ./src/input.css -o ./src/output.css
-
Run the application:
python app.py
-
Open your browser and navigate to
http://localhost:5000
To watch for CSS changes during development:
npm run build-cssOr use the build script:
./build.sh- Calculate GPA:
- Enter the number of courses
- Select grades (A=5.0, B=4.0, C=3.0, D=2.0, E=1.0, F=0.0)
- Enter credits for each course
- Click "Calculate GPA"
- Calculate CGPA:
- Enter the number of semesters
- Input GPA and credits for each semester
- Click "Calculate CGPA"
- View History: Your calculations are automatically saved to browser storage
- A: 5.0
- B: 4.0
- C: 3.0
- D: 2.0
- E: 1.0
- F: 0.0
No API endpoints required - all calculations are done client-side with local storage.
- Client-side only: No server-side data storage
- Local storage: Calculations saved in browser
- No authentication: Immediate access without signup
GPAsimulator/
├── app.py # Flask backend application
├── index.html # Main HTML page
├── script.js # Frontend JavaScript
├── requirements.txt # Python dependencies
├── package.json # Node.js dependencies and scripts
├── tailwind.config.js # Tailwind CSS configuration
├── build.sh # Build script for CSS compilation
├── README.md # This file
├── src/ # Source and compiled CSS files
│ ├── input.css # Tailwind source CSS
│ └── output.css # Compiled CSS
└── database.db # SQLite database (created automatically)
This project is open source and available under the MIT License.