Welcome to our group project for Software Engineering (CO3001) course, semester 241.
The HCMUT Smart Printing Service (HCMUT-SSPS) is an automated printing solution designed to serve the students of HCMUT across multiple campuses. The primary goal of the system is to provide a convenient and efficient way for students to print their academic documents. The service involves a network of printers located strategically around campus buildings, which are accessible via a web-based and mobile application.
- Front-end: HTML, CSS, Javascript, ReactJS
- Back-end: NodeJS, ExpressJS
- Database: MySQL
- Other tool: Figma, Docker, PostmanAPI
This project is implemented by Group 04 Class CC03 from Ho Chi Minh city University of Technology - VNU HCM. Our group members:
- Lý Tuấn Lộc - 2252456
- Lê Thị Phương Thảo - 2252757
- Lý Triều Uy - 2252889
- Nguyễn Anh Khoa - 2252351
- Lưu Quang Hoàng Cương - 2152032
Ensure you have the following installed on your system:
-
For Docker setup:
- Docker
- Docker Compose
-
For manual setup:
- Node.js (v16 or later recommended)
- MySQL
- npm (Node Package Manager)
If you have Docker installed, follow these steps to quickly set up and run the project:
-
Clone the repository:
git clone <repository-url> cd <project-directory>
-
Start the Docker containers:
docker-compose up --build
-
Access the application:
- Frontend: Navigate to
http://localhost:3000in your browser. - Backend API: Visit
http://localhost:5000for the API endpoints.
- Frontend: Navigate to
-
(Optional) To stop the containers:
docker-compose down
If you don’t have Docker installed, you can manually set up the environment as follows:
-
Clone the repository:
git clone <repository-url> cd <project-directory>
-
Set up the database:
- Install MySQL and create a database for the project.
- Use the spss.sql to run in MySQL
- Update the
.envfile with your MySQL credentials (host, user, password, database name).
-
Install dependencies:
- Navigate to the backend directory and install dependencies:
cd backend npm install - Navigate to the frontend directory and install dependencies:
cd ../frontend npm install
- Navigate to the backend directory and install dependencies:
-
Start the backend server:
cd ../backend npm start -
Start the frontend development server:
cd ../frontend npm start -
Access the application:
- Frontend: Navigate to
http://localhost:3000in your browser. - Backend API: Visit
http://localhost:5000for the API endpoints.
- Frontend: Navigate to
- Ensure the database server is running and the tables are properly migrated before starting the backend server.
- Use
Postmanor any API testing tool to test backend endpoints. - Ensure any required environment variables are configured in a
.envfile for both the backend and frontend.