How wailamari/autofair works
Project Type & Purpose
• This is a simple full-stack PHP web application demonstrating an MVC-based login page backed by a MySQL database.
• It uses WAMP (Apache + PHP + MySQL) for hosting, follows an MVC directory layout, and includes example data scripts and tests.
File Structure Analysis
• Top level:
• README.md / README.html – project description & MVC primer
• loginController.php, main_page.php – controller entrypoints
• fillDB.php, testUserModel.php – utility/test scripts
• styles/ – CSS assets (example.css, main_styles.css)
• scripts/php/ – backend code broken into subfolders:
– env_settings.php – DB connection config
– models/ (DBModel.php, UserModel.php) – data‐access layer
– views/ (includes.php, loginExample.php, welcomePage.php) – presentation layer
• scripts/sql/user.sql – initial “users” table dump
README Insights
• The README explicitly calls out MVC architecture, describes installation (WAMP + virtual host), database setup, and MVC flow rules.