Skip to content

A spring boot application which manages the grades of different students.

License

Notifications You must be signed in to change notification settings

Dev-Daljeet/GradeManagementSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grade Management System

This project is a web application which manages the grades of different students. It performs CRUD (Create, read(view), update and delete) operations, calculates the grade (average grade, letter grade and overall class average) of every student, registers a user (student/professor role) and use Spring security to allow/restrict the access of different URLs depending upon roles.

My objective behind this project was to learn Spring Security and use database to load users and add users rather than hard coding the users in security config class.

Programming language: Java

Java Framework: Spring Boot

Type: Maven

Dependencies used: Spring Web, Thymeleaf, Lombok, Spring data JDBC, H2 database and Spring Security

Some sample screenshots of Project

Homepage As Professor

Screesshot of Homepage

Homepage As Student

Screesshot of Homepage

Homepage without login as user

Screesshot of Homepage

Login page

Screesshot of Homepage

Add page

Screesshot of add page

View As Professor page

Screesshot of viewAsProf 1 page Screesshot of viewAsProf 2 page

View As Student page

Screesshot of viewAsStu page

Register page

Screesshot of register page

How the project (application) works:

(Note: Anyone can register as professor by clicking on register button. For student, when professor adds a student, the student gets added into user relation in the database. Thus, the newly added student can login using his/her name as username and studentId as password.)

Professor (User with role Professor) can do following operations:

  • Add a student (name, studentId, Exercises, Assignment 1, Assignment 2, Assignment 3, Midterm, Final Exam)
  • View all students
  • View average grade of every students
  • View overall average of every section and overall average grade
  • Edit the properties of student (name, studentId, Exercises, Assignment 1, Assignment 2, Assignment 3, Midterm, Final Exam)
  • Delete the student

Student (User with role Student) can do following operations:

  • View his/her grade
  • View his/her average grade and letter grade

Usage examples (How to use):

GradeManagementSystem

Run:

Prerequisites (Requirements):

For building and running the application you need:

Running the application with IDE

There are several ways to run a Spring Boot application on your local machine. One way is to execute the main method in the com.devdaljeet.grademanagementsystem.GradeManagementSystemApplication class from your IDE (Eclipse).

  • Download the zip or clone the Git repository.
  • Unzip the zip file (if you downloaded one)
  • Open Command Prompt and Change directory (cd) to folder containing pom.xml
  • Open Eclipse
    • File -> Import -> Existing Maven Project -> Navigate to the folder where you unzipped the zip
    • Select the project
  • Choose the Spring Boot Application file (search for @SpringBootApplication)
  • Right Click on the file and Run as Java Application

Running the application with Maven

Alternatively you can use the Spring Boot Maven plugin like so:

$ git clone https://github.com/Dev-Daljeet/GradeManagementSystem.git
$ cd GradeManagementSystem
$ mvn spring-boot:run

License

MIT License Copyright (c) 2020 Dev-Daljeet

Refer to LICENSE file for full information.