How dana0507/wonka-s-chocolate-app works
Wonka is a chocolate-shopping Android app backed by PHP endpoints and a MySQL database. Its apparent user journey spans account access, product discovery and chocolate customization, favorites and cart management, checkout, and profile or ticket features. The tree supports these distinct product areas, but no README or Android source excerpts were provided, so Android navigation and client-to-server calls cannot be verified; those links are omitted. PHP-to-database operations and shared connection imports are shown where the excerpts or source index provide evidence.
Main entry points: connection.php Database connection · wonka (2).sql Wonka database · login.php Authentication endpoints · signup.php Registration endpoint
Components 22
Android app
- App entry
app/src/main/java/com/example/wonka/MainActivity.java - Product browsing
app/src/main/java/com/example/wonka/ProductsActivity.java - Product details
app/src/main/java/com/example/wonka/ProductViewActivity.java - Chocolate builder
app/src/main/java/com/example/wonka/chooseType.java - Cart and checkout
app/src/main/java/com/example/wonka/CheckoutActivity.java - Favorites
app/src/main/java/com/example/wonka/FavoritesListActivity.java - User profile
app/src/main/java/com/example/wonka/UserProfileActivity.java
Accounts and profile
- Login and signup
app/src/main/java/com/example/wonka/LoginActivity.java - Authentication endpoints
wonka/login.php - Registration endpoint
wonka/signup.php - Profile endpoints
wonka/update_profile.php - User lookup
wonka/get_user.php
Shopping and checkout
- Product catalog
wonka/get_products.php - Cart endpoints
wonka/addToCart.php - Favorite endpoints
wonka/get_favorites.php - Order creation
wonka/add_order.php
Customization and tickets
- Chocolate persistence
wonka/save_chocolate.php - Ingredient lookup
wonka/getIngredients.php - Ticket validation
wonka/check_code.php
PHP backend
- Database connection
wonka/connection.php - Wonka database
wonka (2).sql
Other components
- Shopper
Connections 20
- Shopper → App entry: uses
- Shopper → Login and signup: authenticates
- Authentication endpoints → Database connection: imports
wonka/login.php - Registration endpoint → Database connection: imports
wonka/signup.php - Profile endpoints → Database connection: imports
wonka/update_profile.php - User lookup → Database connection: imports
wonka/get_user.php - Cart endpoints → Database connection: imports
wonka/addToCart.php - Order creation → Database connection: imports
wonka/add_order.php - Chocolate persistence → Database connection: imports
wonka/save_chocolate.php - Ingredient lookup → Database connection: imports
wonka/getIngredients.php - Ticket validation → Database connection: imports
wonka/check_code.php - Authentication endpoints → Wonka database: queries users
wonka/login.php - Registration endpoint → Wonka database: writes users
wonka/signup.php - Profile endpoints → Wonka database: updates users
wonka/update_profile.php - User lookup → Wonka database: reads users
wonka/get_user.php - Cart endpoints → Wonka database: updates carts
wonka/addToCart.php - Order creation → Wonka database: writes orders
wonka/add_order.php - Chocolate persistence → Wonka database: writes products
wonka/save_chocolate.php - Ingredient lookup → Wonka database: reads ingredients
wonka/getIngredients.php - Ticket validation → Wonka database: checks tickets
wonka/check_code.php