Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEUB Student Portal

This is a Desktop application made with JAVA and JAVASWING (to render the GUI). This project is an implementation of CRUD operations on JAVA<>MongoDB.

Documentation

This desktop application is designed for NEUB students and NEUB officials. Using this app, NEUB students can find their semester results (initially 1st and 2nd semesters), and NEUB officials can view any student's basic information. Additionally, officials have the capability to Create/Update/Delete student information in the database.

The project is structured using several Java classes, each with its own specific purpose:

  • Main(): This class serves as the starting UI for the application.

  • StudentResult(): Responsible for querying and displaying student results from the database.

  • LoginPage(): Upon successful login, this page grants access to perform CRUD operations. In this project, access is limited to NEUB officials only, and the default credentials are set to 1,1.

  • Home(): This page is displayed after successfully passing the login page, providing a central navigation point.

  • DisplayUserInfo() & NeubInfoPortal(): These classes are used to query and display student information.

  • CED(): This class represents the UI where CRUD operations are performed.

  • Handler(): The core of the project, the Handler class serves as the connector between Java and MongoDB. It resolves all CRUD operations generated by the user and returns the data accordingly.

Requirements and Instructions

Use JDK20 or higher version of JAVA. You have to add Maven extension in your IDE to use the MongoDB driver.

Intialise any empty folder (created with Maven) and clone this project using git.

git clone https://github.com/TSRohit99/nsp_java.git

add this dependency on your pom.xml file.

 <dependency>
            <groupId>org.mongodb</groupId>
            <artifactId>mongodb-driver-sync</artifactId>
            <version>4.11.1</version>
        </dependency>

To connect with DataBase you need to set environment variables MONGO_DB_USERNAME and MONGO_DB_PASSWORD for the following section.

 String username = System.getenv("MONGO_DB_USERNAME");
        String password = System.getenv("MONGO_DB_PASSWORD");
        String connectionString = "mongodb+srv://"+username+":"+password+"@cluster0.lrgci3m.mongod

How to set?

-In the "User variables for [YourUsername]" section, click "New..."

-Enter MONGO_DB_USERNAME for the variable name and the corresponding value for the variable value.

-Repeat the process for MONGO_DB_PASSWORD.

Authors

About

A desktop application made with JAVA SWING where NEUB students can find their semester result and NEUB officials can fetch the student info, also can perform the CRUD operations through the UI.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages