Important
This Project is officially moved from AWS MySQL RDS
to Local MySQL
.
Welcome to the Student-CRUD repository! This repository contains a simple Java application used for performing CRUD (Create, Read, Update, Delete) operations on student records. The application is designed to manage student information, allowing you to add, view, edit, and delete student records.
- Create: Add new student records to the database, including name, age, gender, and contact information.
- Read: View a list of all student records with relevant details.
- Update: Edit existing student records to reflect any changes in their information.
- Delete: Remove student records from the database when they are no longer needed.
For storing Mysql Database credentials
USERNAME=your_mysql_username
PASSWORD=your_mysql_password
or Store on your environmental variables space.
<dependency>
<groupId>io.github.cdimascio</groupId>
<artifactId>dotenv-java</artifactId>
<version>3.0.0</version>
</dependency>
These statements are used to access the value in the .env
file
Dotenv getenvirnmentalVariables = Dotenv.configure().load();
// get the Environmental value using Key(USERNAME)
DatabaseConnection.user = getenvirnmentalVariables.get("USERNAME");
// get the Environmental value using Key(PASSWORD)
DatabaseConnection.password = getenvirnmentalVariables.get("PASSWORD");
// AWS Driver class name
Class.forName("software.aws.rds.jdbc.mysql.Driver");
<dependency>
<groupId>software.aws.rds</groupId>
<artifactId>aws-mysql-jdbc</artifactId>
<version>1.1.9</version>
</dependency>
For MySQL Database setup see the ➡️ SETUP.md or
MySQL > create_tables.sql
- Fork this repository
- Clone the repository
- Navigate to the project directory:
> git clone https://github.com/f-mohamed-abdullah/Student-CRUD.git
> cd Student-CRUD
Contributing to this repository is welcome. If you find a bug, have a feature request, or want to contribute in any other way, please follow these steps:
-
Fork the repository.
-
Create a new branch for your feature or bug fix or you can work on the main branch too:
> git checkout -b test
-
Make your changes and commit them with descriptive commit messages.
-
Push your changes to your forked repository.
-
Create a PR against the main branch of this repository, describing your changes and the problem or feature you're addressing.
This project is licensed under the MIT License, which means you are free to use, modify, and distribute it as you see fit. Please refer to the LICENSE file for more details.