How nperrinjit/it490-project works
Alcohol Social is a PHP/MySQL cocktail-recipe social application. Its documented request workflow sends web requests through RabbitMQ to a database-side listener, which dispatches operations to domain functions and returns responses. The shown domain code includes authentication and sessions, drink search and recommendations, favorites, reviews, user recipes, blogs, and activity. Separate scripts populate drink and ingredient data from TheCocktailDB. The repository tree contains no webpage implementation, so web behavior and several advertised features are represented only where documented. The graph omits unverified links for unsampled code.
Main entry points: tables MySQL database · rabbitMQListener.php Request listener · functions.php Domain operations · script.php Drink importer
Components 12
Request handling
- Request listener
scripts/rabbitMQListener.php
Application domain
- Domain operations
scripts/lib/functions.php - DB connection
scripts/lib/db.php - DB configuration
scripts/lib/config.php
Recipe data ingestion
- Drink importer
scripts/script.php - Ingredient importer
scripts/script2.php - Drink ingredient linker
scripts/script3.php
Other components
- Web user
- Web application
- RabbitMQ
- MySQL database
tables - TheCocktailDB
Connections 14
- Web user → Web application: uses
README.md - Web application → RabbitMQ: sends requests
README.md - RabbitMQ → Request listener: routes requests
README.md - Request listener → RabbitMQ: connects to
scripts/rabbitMQListener.php - Request listener → Domain operations: dispatches requests
scripts/rabbitMQListener.php - Domain operations → DB connection: gets connection
scripts/lib/functions.php - DB connection → DB configuration: loads credentials
scripts/lib/db.php - Domain operations → MySQL database: queries data
scripts/lib/functions.php - Drink importer → TheCocktailDB: fetches drinks
scripts/script.php - Drink importer → MySQL database: inserts drinks
scripts/script.php - Ingredient importer → TheCocktailDB: fetches ingredients
scripts/script2.php - Ingredient importer → MySQL database: inserts ingredients
scripts/script2.php - Drink ingredient linker → MySQL database: reads and links
scripts/script3.php - Drink ingredient linker → TheCocktailDB: fetches drink details
scripts/script3.php