Website kasir admin coffee shop berbasis PHP, MySQL, HTML, CSS, dan JavaScript.
kopiq-cashier-php/
├── api/
│ └── index.php
├── assets/
│ ├── cup.svg
│ └── logo.svg
├── config/
│ └── database.php
├── css/
│ └── style.css
├── database/
│ └── kopiq_pos.sql
├── includes/
│ └── auth.php
├── js/
│ ├── app.js
│ └── print.js
├── index.php
├── login.php
├── logout.php
└── README.md
kopiq-cashier-php ke:C:\xampp\htdocs\
Jalankan Apache dan MySQL dari XAMPP Control Panel.
Buka phpMyAdmin:
http://localhost/phpmyadmin
database/kopiq_pos.sql
config/database.php
Default XAMPP:
$DB_HOST = 'localhost';
$DB_NAME = 'kopiq_pos';
$DB_USER = 'root';
$DB_PASS = '';
http://localhost/kopiq-cashier-php/login.php
Username: admin
Password: admin123
Website kasir ini sudah punya endpoint untuk menerima pesanan online:
POST api/index.php?action=create_online_order
Contoh JSON:
{
"customer_name": "Ridwan",
"items": [
{ "product_id": 1, "qty": 2 }
],
"payment_method": "QRIS",
"paid_amount": 30000
}
Nanti website pelanggan bisa diarahkan ke endpoint tersebut, lalu pesanan akan masuk ke menu Pesanan Masuk dengan status Proses. Untuk real-time yang lebih serius, gunakan polling JavaScript, WebSocket, Firebase, Supabase, atau backend API khusus.