How godmodeamir/sales works
Sales App is a PHP/MySQL sales-management web application. Users register or log in, browse and maintain a product catalog, add and adjust cart items, then submit checkout to create an order and reduce stock. PHP page handlers own these operations and use the shared MySQL connection; product image uploads are stored under uploads/. The graph follows the README and shown source excerpts; some page-to-page navigation is documented but not all handlers were inspected in full.
Main entry points: connection.php MySQL connection · index.php Product dashboard · login.php Sign in · cart.php Cart display
Components 14
Accounts
- Registration
signup.php - Sign in
login.php - Sign out
logout.php
Product catalog
- Product dashboard
index.php - Add product
add_product.php - Edit product
edit_product.php
Cart and checkout
- Add to cart
add_to_cart.php - Cart display
cart.php - Update cart
update_cart.php - Checkout
checkout.php
Persistence and media
- MySQL connection
connection.php - Sales database
- Product images
uploads
Other components
- Shop user
Connections 30
- Shop user → Registration: registers
README.md - Shop user → Sign in: signs in
README.md - Shop user → Product dashboard: browses
README.md - Shop user → Add product: submits product
add_product.php - Shop user → Edit product: edits product
edit_product.php - Shop user → Add to cart: adds item
add_to_cart.php - Shop user → Cart display: views cart
README.md - Shop user → Update cart: changes quantity
update_cart.php - Shop user → Checkout: submits order
checkout.php - Shop user → Sign out: signs out
README.md - Registration → MySQL connection: uses
signup.php - Sign in → MySQL connection: uses
login.php - Sign out → Sign in: redirects to
logout.php - Sign in → Product dashboard: redirects to
login.php - Product dashboard → Sign in: redirects unauthenticated
index.php - Product dashboard → MySQL connection: queries products
index.php - Product dashboard → Add product: posts product form
index.php - Product dashboard → Add to cart: posts cart item
index.php - Product dashboard → Edit product: links to edit
index.php - Add product → MySQL connection: inserts product
add_product.php - Add product → Product images: writes image
add_product.php - Edit product → MySQL connection: reads and updates
edit_product.php - Edit product → Product images: replaces image
edit_product.php - Add to cart → MySQL connection: updates cart
add_to_cart.php - Cart display → MySQL connection: loads cart
cart.php - Cart display → Update cart: posts changes
cart.php - Cart display → Checkout: posts checkout
README.md - Update cart → MySQL connection: updates cart
update_cart.php - Checkout → MySQL connection: creates order and updates stock
checkout.php - MySQL connection → Sales database: connects
connection.php