From ef51cf96a28eff762bfef8bc24108f55faf71984 Mon Sep 17 00:00:00 2001 From: mwpn Date: Thu, 18 Dec 2025 11:40:02 +0700 Subject: [PATCH] Move index.php dari root ke public/ - running directory sekarang di public --- README.md | 10 +++--- index.php => public/index.php | 66 ++++++++++++++++++----------------- 2 files changed, 39 insertions(+), 37 deletions(-) rename index.php => public/index.php (79%) diff --git a/README.md b/README.md index e939060..5c18041 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ Frontend aplikasi Retribusi BAPENDA Kabupaten Garut. ``` retribusi (frontend)/ -├── index.php # Login page -├── public/ +├── public/ # Document root (running directory) +│ ├── index.php # Login page │ ├── dashboard/ │ │ ├── dashboard.html # Dashboard utama │ │ ├── event.html # Halaman event logs @@ -21,7 +21,6 @@ retribusi (frontend)/ │ │ ├── dashboard.js # Dashboard logic │ │ ├── charts.js # Chart.js helpers │ │ └── realtime.js # Realtime SSE client -│ └── index.php └── api/ # Legacy API endpoints (deprecated) ``` @@ -50,8 +49,9 @@ File `public/dashboard/js/config.js` mengatur: ## Development 1. Pastikan backend API sudah running -2. Buka `index.php` untuk login -3. Akses dashboard di `public/dashboard/dashboard.html` +2. Set document root ke folder `public/` +3. Buka `index.php` untuk login (atau akses root `/`) +4. Akses dashboard di `dashboard/dashboard.html` ## Production diff --git a/index.php b/public/index.php similarity index 79% rename from index.php rename to public/index.php index 1bdf556..19bba72 100644 --- a/index.php +++ b/public/index.php @@ -1,5 +1,6 @@ + @@ -20,6 +21,7 @@ } +
@@ -30,53 +32,51 @@
- + placeholder="Masukkan username">
- + placeholder="Masukkan password">
-
- + + -