Skip to content

PhiuTheWind/CNPM_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

165 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Student Smart Printing Service (HCMUT_SSPS)

The Student Smart Printing Service (HCMUT_SSPS) is a campus-wide application developed by Ho Chi Minh City University of Technology (HCMUT) to enhance the printing experience for students. It provides seamless access to printers, document upload features, and quota management, while administrators have a dedicated platform for efficient printer oversight and system configuration.

Upload File UI

Printing Log UI

Dashboard


Features

For Students

  • Printer Information: View details of available printers, including printer IDs and campus locations.
  • Document Upload: Upload documents for printing with options for number of pages, color settings, size, and scheduled print time.
  • Quota Management: Monitor and purchase additional printing pages via the university's payment service.
  • Authentication: Secure login through the HCMUT Student Authentication Service (HCMUT_SSO).
  • User-Friendly Interface: Simple navigation and accessibility designed for all users.

For Administrators (SPSO)

  • Printer Management: Add, update, or remove printers and configure their settings.
  • Transaction Tracking: Monitor all printing transactions and activities.
  • Reporting: Generate customizable periodic reports for analysis.
  • System Configuration: Adjust system settings to ensure optimal performance.

Installation

Follow these steps to set up the application:

  1. Install NodeJS on your system.
  2. Clone the repository to your local machine.
  3. Navigate to the project folder using your terminal.
  4. Install MySQL to set up the database.
  5. Update the configuration file located at /Back_end/.env with your environment variables.
  6. Start the backend server by running:
    npm run start
  7. Access the application at the VITE local address:
    http://localhost:5173
    

Login

1. Student Accounts

Below is an example structure for student accounts:

Username Password Student ID Student Name Page Number
student1 password1 2252898 Huỳnh Ngọc Văn 100
student2 password2 2252327 Lê Hà Nguyên Khánh 100
student3 password3 2252293 Huỳnh Mai Quốc Khang 100
student4 password4 2252608 Hoàng Văn Phi 100
student5 password5 2252023 Lê Đỗ Minh Anh 100

2. SPSO (Administrator)

Below are the credentials for the admin account:

Field Name Description Example
username Admin username spso1
password Default password for admin login password1

Database Trigger

Use the following SQL script to create a trigger for managing request_id in the Request table:

USE hcmut_spss;
DROP TRIGGER IF EXISTS `before_insert_request`;

DELIMITER $$

CREATE TRIGGER `before_insert_request`
BEFORE INSERT ON `Request`
FOR EACH ROW
BEGIN
    -- Calculate the next request_id for the given student_send
    DECLARE next_request_id INT;

    -- Get the maximum request_id for the current student_send
    SELECT IFNULL(MAX(request_id), 0) + 1
    INTO next_request_id
    FROM Request
    WHERE student_send = NEW.student_send;

    -- Assign the calculated request_id to the new row
    SET NEW.request_id = next_request_id;
END$$

DELIMITER ;

Contact

For support or inquiries, please contact the us:

About

The Student Smart Printing Service is a campus-wide application developed by Ho Chi Minh City University of Technology (HCMUT) to enhance the printing experience for students. And for administrative purposes, the app provides a configuration interface for the Student Printing Service Officer (SPSO).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors