How exerssd/project-kel4-pemweb works
AlifStore is a native PHP/MySQL Robux top-up storefront with a separate admin area. The customer workflow covers account access, browsing packages, submitting an order, and reviewing its status; admins manage the catalog and advance or remove orders. The README also describes search, theme switching, and flash sales, but those are static or frontend capabilities rather than payment or fulfillment integrations. Several frontend modules and some API endpoints were not excerpted, so their internal call wiring is not asserted.
Main entry points: auth.php Session access control · database.php Database connection · index.html Storefront page · main.js App interactions
Components 23
Customer storefront
- Storefront page
frontend/index.html - App interactions
frontend/js/main.js - Customer account UI
frontend/js/auth.js - Store data
frontend/js/data.js - Catalog rendering
frontend/js/render.js - Order and account dialogs
frontend/js/modal.js
Backend services
- Account API
backend/api/auth.php - Product API
backend/api/Products.php - Order creation
backend/api/order-create.php - Customer order history
backend/api/order-status.php - Customer order deletion
backend/api/order-delete.php
Admin operations
- Admin login
backend/admin/login.php - Admin dashboard
backend/admin/index.php - Product management
backend/admin/products.php - Order management
backend/admin/orders.php - Admin logout
backend/admin/logout.php
Shared data and access
- Session access control
backend/includes/auth.php - Request and value helpers
backend/includes/functions.php - JSON responses
backend/includes/response.php - Database connection
backend/config/database.php - Store database
backend/database/schema.sql
Other components
- Customer
- Administrator
Connections 36
- Customer → Storefront page: browses
README.md - Administrator → Admin login: signs in
README.md - Admin login → Admin dashboard: redirects
backend/admin/login.php - Admin dashboard → Session access control: checks role
backend/admin/index.php - Admin dashboard → Database connection: reads summary
backend/admin/index.php - Product management → Session access control: checks role
backend/admin/products.php - Product management → Database connection: reads and writes
backend/admin/products.php - Order management → Session access control: checks role
backend/admin/orders.php - Order management → Database connection: reads and updates
backend/admin/orders.php - Account API → Session access control: uses session
backend/api/auth.php - Account API → Request and value helpers: parses and cleans
backend/api/auth.php - Account API → Database connection: reads and writes
- Order creation → Session access control: requires customer
backend/api/order-create.php - Order creation → Request and value helpers: parses and validates
backend/api/order-create.php - Order creation → Database connection: reserves and saves
backend/api/order-create.php - Customer order history → Session access control: requires customer
backend/api/order-status.php - Customer order history → Database connection: reads orders
backend/api/order-status.php - Customer order deletion → Session access control: requires customer
backend/api/order-delete.php - Customer order deletion → Request and value helpers: parses request
backend/api/order-delete.php - Customer order deletion → Database connection: deletes order
backend/api/order-delete.php - Session access control → Database connection: loads connection
backend/includes/auth.php - Session access control → JSON responses: rejects access
backend/includes/auth.php - Product API → Database connection: loads connection
backend/api/Products.php - Product API → JSON responses: formats response
backend/api/Products.php - Storefront page → App interactions: loads interactions
- App interactions → Customer account UI: coordinates account UI
- App interactions → Catalog rendering: coordinates display
- App interactions → Order and account dialogs: coordinates dialogs
- Catalog rendering → Store data: uses catalog data
- Order and account dialogs → Order creation: submits order
- Customer account UI → Account API: sends account requests
- Storefront page → Product API: loads products
- Storefront page → Customer order history: requests history
- Storefront page → Customer order deletion: requests deletion
- Admin logout → Session access control: uses session
backend/admin/logout.php - Store database → Database connection: defines stored data