https://github.com/chocotacoop/student_reporting_system
In this application, we can add student ,there marks,semester & See multiple reports of students. Average Percentage of whole class in recent semester Average marks of Students in a subject Top 2 Consistent Students across all semesters (Maximum average marks)
https://github.com/chocotacoop/student_reporting_system
hibernate java mysql springboot springdata-jpa swagger-ui
Last synced: 2 months ago
JSON representation
In this application, we can add student ,there marks,semester & See multiple reports of students. Average Percentage of whole class in recent semester Average marks of Students in a subject Top 2 Consistent Students across all semesters (Maximum average marks)
- Host: GitHub
- URL: https://github.com/chocotacoop/student_reporting_system
- Owner: ChocotacoOp
- Created: 2023-02-23T17:25:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-24T05:40:54.000Z (over 3 years ago)
- Last Synced: 2026-04-12T07:34:51.260Z (2 months ago)
- Topics: hibernate, java, mysql, springboot, springdata-jpa, swagger-ui
- Language: Java
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Student Reporting Application
In this application, we can add student ,there marks,semester & See multiple reports of students.
- Average Percentage of whole class in recent semester
- Average marks of Students in a subject
- Top 2 Consistent Students across all semesters (Maximum average marks)
# ER Diagram
[](https://github.com/ChocotacoOp/Student_Reporting_System/blob/main/image/erd.png?raw=true)
# Functionalities
- Add Student
- Add subject and number to student
- Get Average Percentage of whole class in recent semester
- Get Average marks of Students in a subject
- Get top 2 Consistent Students across all semesters (Maximum average marks)
## Backend Work
- Proper Exception Handling, and Input Validation
- Data Stored in the database(mySQL)
## Installation and Run
- Before running the API server, we should update the database config inside the application.properties file.
- Update the port number, username and password as per your local database config.
```
server.port=8901
spring.datasource.url=jdbc:mysql://localhost:3306/salesken
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=1234
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.mvc.pathmatch.matching-strategy = ANT_PATH_MATCHER
```
# Tech Stacks
- Java Core
- Spring Data JPA
- Spring Boot
- Hibernate
- MySQL
# Backend
## Student Controller
#### POST : /addStudent
```
{
"studentId": 1,
"name": "Rajat Santra",
"fatherName": "Dipak Santra",
"email": "rajat123@gmail.com",
"mobileNumber": "9382695437",
"gender": "MALE"
"Subject":[]
}
```
#### PUT : /addSubjectToStudent/{studentId}
```
{
"subjectId" : 2,
"studentId": 1,
"Semester":FIRST,
"Subject":"Maths",
"Marks":75
}
```
#### Get :/getAverageOfRecentSemester
```
89.33
```
#### Get : /averageMarksOfStudents
```
{
"Name": "Rajat Santra"
"English" : 71,
"Math" : 85,
"Science" : 78
}
```
#### Get : //top2ConsistentStudents
```
{
"Rajat" : 50,
"Santra" : 65
}
```