This project is a simple web-based application that simulates a University Residence Management System. It allows users to add residences (dorm rooms and apartments), add students, assign students to residences, calculate rents, and submit maintenance requests.
- Add new residences (dorm rooms or apartments)
- Add new students
- Assign students to residences
- Calculate rents for all residences
- Submit maintenance requests
- HTML5
- CSS3
- JavaScript (ES6+)
index.html
: The main HTML file containing the structure of the web pagestyles.css
: CSS file for styling the HTML elementsindex.js
: JavaScript file containing all the logic for the application
- Clone this repository to your local machine.
- Open the
index.html
file in a web browser. - Use the provided interface to:
- Add residences (provide name, address, size/bedrooms, and type)
- Add students (provide name, ID, and gender)
- Assign students to residences using the dropdown menus
- Calculate rents for all added residences
- Submit maintenance requests for students
The JavaScript code uses ES6 classes to model the different entities in the system:
Residence
: Base class for all types of residencesDormRoom
: ExtendsResidence
, specifically for dorm roomsApartment
: ExtendsResidence
, specifically for apartmentsStudent
: Represents a studentMaintenanceRequest
: Represents a maintenance request submitted by a student- Utility functions:
saveToLocalStorage
andloadFromLocalStorage
for local storage
- Implement data persistence ( backend database)
- Add form validation for input fields
- Implement a more sophisticated rent calculation system
- Add a feature to view and manage existing maintenance requests
- Improve the UI/UX with a more polished design