Skip to content

HQT-Team/hostel-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

HQT Hostel Management with CI | Β© 2022 by HQT Team

🏨 HQT Hostel Management 🏨

πŸ‘‹ Welcome to our Software Development Project (SWP391) πŸ‘‹

Video Demo: πŸ‘‰ here

Table of Contents

Description

  • This web application is ...

Preview Screenshot

Home Page Β Β  About us

Admin Dashboard Β Β  Manage Account

Owner Dashboard Β Β  Manage Room

Renter Dashboard Β Β  List Bills

Install and run

Required

  • Open source code with IntelliJ IDE
  • Installed JDK verison 11.x or above
  • Installed Tomcat server version 8.5.x or higher and below version 10
  • Installed Microsoft SQL Server Management Studio 18 and run the attached project script file in the source code folder
  • Installed NodeJS Latest Version and SASS

Install

  1. Clone the source code to your computer and open the source code with IntelliJ IDE
  2. Wait for the libraries configured in the dependencies of the POM.xml file to be downloaded
  3. Select Runs/Debug configuration
  4. Select Add New Configuration
  5. Select Tomcat Server Local version
  6. In the Server tab, in the Application server section, link to the folder where Tomcat is installed
  7. In the Server tab, in the JRE section, link to the folder where the JDK is installed
  8. On the Deployment tab, click Add, select Artifact and select HappyHostel:war
  9. Also in the Deployment tab, scroll down to see the Application context item is currently "/HappyHostel_war", delete "_war" and click Apply
  10. In the project's IntelliJ window, open Terminal with Command Prompt
  11. Run command sass --watch src/main/webapp/assets/scss:src/main/webapp/assets/css to build SCSS files into CSS files to display styles for pages

Run

  1. Click run to let IntelliJ turn on tomcat, build the project into a .war file and deploy it to the server
  2. The web will automatically be turned on in the selected default browser or type "http://localhost:8080/HappyHostel/"

Technology

1. Frontend

  • HTML, CSS, Javascript, Bootstrap, jQuery
  • Font awesome
  • JSP - JavaServer Pages
  • JSTL - JSP Standard Tag Library
  • axios - Promise based HTTP client for the browser and node.js
  • ...

2. Backend

  • Servlets - a Java programming language class that is used to extend the capabilities of servers that host applications accessed by means of a request-response programming model
  • JDBC - Java Database Connectivity - a Java API to connect and execute the query with the database

3. Database

  • Microsoft SQL Server - a relational model database server produced by Microsoft

4. Other Technologies

  • Design pattern: MVC2

5. Tool

  • IntelliJ
  • Java JDK 8
  • Apache Tomcat 8.5.29
  • Visual Studio Code
  • Microsoft SQL Server Management Studio 18

6.Libraries

  • Lombok
  • JSTL
  • sqljdbc4

Functional requirements

1. Guest:

  • View home page
  • Login by account
  • Register a hostel owner account
  • Register a renter account by invite code

2. Hostel Owner

  • View home page
  • Login by account
  • Logout
  • View account information
  • Update account information
  • List hostel
  • Add new hostel
  • Update hostel information
  • View list services (Hostel detail)
  • Add new service (Hostel detail)
  • Room detail
  • Add room
  • Generate room account
  • View Invite code
  • Update room information (room detail)
  • View room information
  • Update room consume (room detail)
  • View current consume (room detail)
  • View history update consume (room detail)
  • View room infrastructure (Room detail)
  • Add room infrastructure (Room detail)
  • Update infrastructure (Room detail)
  • Update contact (room detail)
  • View contract
  • Generate contract (in generate room account screen)
  • View detail invoice
  • View all invoice
  • Calculate money
  • Export invoice
  • View revenue statistic
  • View report statistic
  • View list roommates
  • Add roommate
  • Roommate information
  • Update roommate information
  • Send reports
  • List report
  • Process the report and change its state
  • View list notification
  • View detail notification
  • Add notification

3. Hostel Owner

  • View home page
  • Login by account
  • Logout
  • View account information
  • Update account information
  • Hostel detail
  • View list services (Hostel detail)
  • Room detail
  • View room information
  • View room infrastructure (Room detail)
  • View contract
  • View detail invoice
  • View all invoice
  • Export invoice
  • View list roommates
  • Add roommate
  • Roommate information
  • Update roommate information
  • Send reports
  • List report
  • View list notification

4. Admin:

  • View home page
  • Login by account
  • Logout
  • Managing account
  • View list account pending to approve

Useful Resources

# Name Description
1 Main Project Folder -
2 Database Script -
3 UI Design Prototype for UI
4 Resources Documents, diagrams, necessary tools...

Contributors

  • Hoang Dang Khoa - SE150848 - Leader | Front-end Developer | Back-end Developer | UI Designer (Admin/Owner)

  • Nguyen Tan Loc - SE150877 - Back-end Developer | Database Designer

  • Ho Hai Nam - SE150929 - Back-end Developer | Database Designer

  • Thai Thanh Phat - SE150968 - Back-end Developer

  • Tran Hoai Nam - SE150921 - Front-end Developer | UI Designer (Renter)

Learn More

  • Updating

Reference

License & Copyright

Β© 2022 HQT Team Licensed under the GPL-3.0 LICENSE.