These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Git
- MariaDB Server
- Maven
- Java
-
Clone the project
Use the following command to clone the project:
git clone git@github.com:jcilacad/reservation-system.git
- Create a database
Open your MariaDB server and create a new database named reservation_system
:
CREATE DATABASE reservation_system;
- Update application.properties Navigate to the application.properties file in the project directory and update the username and password fields with your MariaDB server credentials:
spring.datasource.username=root
spring.datasource.password=password
-
Update AdminSeeder class Navigate to the AdminSeeder class located at src/main/java/com/system/reservation/online/bootstrap/ and update the admin credentials as needed. (The name must have a middle name, follow the format in the code)
-
Start the application Use Maven to start the application:
mvn spring-boot:run
- Once you have logged in using the admin credentials, go to
/admin
to view the admin's dashboard. - In the accounts tab, you can add, query, update, and delete students.
- In the items tab, you can add, query, update, and delete items.
- In the transactions tab, you can query, view, approve, cancel, and delete transactions.
- Remarks:
- Pending: The student has placed the reserve item(s).
- Approved: The admin has approved the reserved item(s).
- Completed: The item has already been given to the student by the admin.
- Cancelled: The item has been cancelled by the admin/student.
- Overdue: The item is overdue based on the date inputted by the student.
- Remarks:
- You can generate bulk reports by remarks or generate reports individually by student email.
Note: The default password for the student is their student number. You can change the password in the 'Change Password' module in the app.
- Once logged in, the student will be redirected to the dashboard.
- In the items tab, you can query, view, and reserve items.
- You can view, query, generate, and cancel reserved items.