It's a subsystem that facilitates the process of registering student data. It includes two components: the main menu component for individual student registration and the batch data component for bulk student registration.
The main menu component allows users to register individual student data to the system. It provides a simple menu interface with the following options:
- Add student data
- Add batch students data
To add an individual student's data, follow these steps:
-
Run the component.
-
The main menu will be displayed. Enter
1
. -
Enter the student's data in the following order: Name, ID, Courses. For example:
Ahmed 1 AI, Math
The batch data component enables users to insert multiple student records into the system at once. It allows the selection of eligible files containing bulk student data.
To add batch students data to the system, follow these steps:
-
Run the component.
-
The main menu will be displayed. Enter
2
. -
The eligible files will be shown, which are the files containing the phrase "verified" in their names.
-
Select the desired file by entering its name. For example:
1_verified.csv
- The path
/app/data/batch/
is correctly mounted to a specific folder. - The eligible files contain student data in a specific format, where each line represents one student's data separated by semicolons, and courses are separated by commas.
To ensure the successful building and deployment of the relevant components, a CI/CD pipeline is implemented for the software. The pipeline consists of continuous integration (CI) and continuous deployment (CD) processes for each repository.
The CI process ensures that each repository's component is built successfully. It involves the following steps:
- Set up a CI configuration in the repository to trigger a build process on each commit.
- Configure the build process to compile the source code and run any necessary tests.
- If the build process succeeds, proceed to the CD process.
The CD process pushes the image for the relevant component to Docker Hub. It includes the following steps:
- Set up a CD configuration in the repository to trigger the deployment process upon a successful build.
- Build a Docker image for the component, using the provided Dockerfile.
- Tag the image with the appropriate version, such as
latest
. - Push the image to Docker Hub, using the specified repository and version.
The provided Docker Compose file allows for the deployment of the subsystem components. It defines two services: student-statistics-process
and registration-process
.
- Builds the image from the source code.
- Maps the local folder
/app/data/batch
to the corresponding folder in the Docker container. - Exposes port
80
for accessing the component.
- Builds the image from the source code.
- Maps the local folder
/app/data/batch
to the corresponding folder in the Docker container. - Exposes port
81
for accessing the component.
To run the Docker Compose file and deploy the subsystem, follow these steps:
-
Download the Docker Compose file from the repository.
-
Update the file with the appropriate local paths as indicated.
-
Open a terminal or PowerShell in the directory where the Docker Compose file is located.
-
Run the following command to start the containers:
docker-compose up -d
-
Open another terminal to execute the other component if needed.
-
To execute commands inside a container, run the following command in the terminal:
docker exec -it component-name bash
-
Run the component's main class or entry point inside the container. For example, for the main class
Main
:java Main
By following these steps, you can deploy and utilize the Student Registration Subsystem, incorporating CI/CD practices and Docker containerization concepts.
Contributions to the system are welcome. If you would like to contribute, please follow these steps:
-
Fork the repository on GitHub.
-
Create a new branch for your feature or bug fix.
-
Make the necessary changes in your branch.
-
Test your changes thoroughly.
-
Submit a pull request to the main repository.
-
Provide a clear description of your changes and the problem they solve.
-
Be responsive to any feedback or questions regarding your pull request.
This System was created by a team of four computer science students at Faculty of Computers and Artificial Intelligence Cairo University. The team members are:
- Khaled Ashraf Hanafy Mahmoud - 20190186.
- Kareem Galal Zaki Sayed - 20190383.
- Samah Moustafa Hussien Mahmoud - 20190248.
- Ayatullah Esam El-din Mohamed - 20190123.
-
This System is based on Cloud Computing course at Faculty of Computers and Artificial Intelligence Cairo University. We would like to thank prof. Fatma Omara for his guidance and support throughout this course.
The System is released under the MIT License. You are free to use, modify, and distribute the toolbox in accordance with the terms of this license.