How valdiks1/apartment-building-management-system works
Project Type & Purpose
• This is a web-based apartment building management system. It is built using PHP with a MySQL database, designed to help manage apartment building operations.
• The system supports two types of users: administrators (with a dedicated admin panel) and regular users (who can register, view profiles, and interact with the system).
Main Components
a. Frontend Components:
• Public Pages: index.php, register.php, profile.php, question.php. These handle user interactions.
• Client-side assets: CSS (css/style.css) and JavaScript (js/app.js and js/all.js) for UI styling and interactivity.
• Media: The img directory, which likely contains images used on the site.
b. Backend Components:
• PHP Files: Files such as connection.php and utility.php are responsible for database connectivity and auxiliary functions.
• Admin Section: Located in the admin directory; includes files like adminPage.php, applications.php, contacts.php, mainInfo.php, questions.php, rule.php, and tariffs.php. These files manage administrative functions.
• Additional PHP files: applications.php (likely manages user applications) outside of the admin folder.
c. Database:
• A MySQL database is set up via the MyHome.sql script. The database connection is established in connection.php.
• Tables and relationships later using the SQL file content if needed.
Relationships and Interactions
• User requests (from index.php, register.php, etc.) are received by the frontend.
• Interaction happens through PHP backend scripts that process requests, query/modify the database (using connection.php), and return results.
• The admin section interacts similarly but via dedicated PHP pages under the admin folder.
• External communications are limited to the local server environment, emphasizing database connectivity and session management between user and admin operations.
Architectural Patterns & Design Principles
• The project follows a simple PHP web application architecture without a strict MVC separation but inherently partitions the application by user roles (admin vs. regular user).
• There’s a clear separation between presentation (CSS, JavaScript, and HTML/PHP pages) and business logic (PHP scripts and utility functions).
• Database abstraction is partially handled in connection.php and is critical for the system.
Technologies, Frameworks, and Libraries
• PHP for server-side logic.
• MySQL for data storage and retrieval.
• HTML/CSS/JavaScript for the frontend UI.
• No modern frameworks are indicated; the design is more traditional and file-based.