From 4fc7f8dd4ea595aa200298fbb5b10c47a05c34ca Mon Sep 17 00:00:00 2001 From: Abimanyu Ridho Date: Thu, 11 Jun 2026 11:16:02 +0700 Subject: [PATCH] update docs --- .gitignore | 4 +++- README.md | 11 ++++++----- api/config/database.local.php.example | 2 +- api/config/database.php | 2 +- database.sql | 4 ++-- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 4e60579..1ea6781 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,6 @@ node_modules/ .vscode/ .idea/ Thumbs.db -desktop.ini \ No newline at end of file +desktop.ini +*.py +*.pyc \ No newline at end of file diff --git a/README.md b/README.md index fad0816..dac2d3d 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,9 @@ Proyek WebGIS sederhana untuk visualisasi data kemiskinan dan fasilitas umum di ## ⚙️ Cara Setup 1. Tempatkan folder proyek di dalam direktori `htdocs` server lokal. 2. Mulai modul Apache dan MySQL (di XAMPP Control Panel). -3. Buat database bernama `webgis_poverty` dan import file `database.sql` ke dalamnya. +3. Buat database bernama `webgis` dan import file `database.sql` ke dalamnya. 4. Salin file `api/config/database.local.php.example` menjadi `api/config/database.local.php` lalu sesuaikan konfigurasi database. -5. Buka webgis melalui browser (misal: `http://localhost/webgis_poverty_fixed/` atau langsung melalui `index.html`). +5. Buka webgis melalui browser (misal: `http://localhost/webgis_class/` atau langsung melalui `index.html` sebagai Landing Page). ## 📁 Struktur File Penting @@ -30,10 +30,11 @@ Proyek WebGIS sederhana untuk visualisasi data kemiskinan dan fasilitas umum di * `api/penduduk_miskin.php` — API data penduduk miskin (termasuk aksi hitung ulang kedekatan). * `api/rumah_ibadah.php` — API data rumah ibadah. * `api/log_bantuan.php` — API log bantuan sosial. -* `api/data_jalan.php`, `api/data_parsil.php`, `api/spbu.php` — API data spasial lainnya. +* `api/data_jalan.php`, `api/data_persil.php`, `api/spbu.php` — API data spasial lainnya. ### Frontend -* `index.html` — Halaman dashboard utama. -* `css/app.css` — File styling antarmuka. +* `index.html` — Halaman Landing Page (Menu Utama). +* `kemiskinan.html`, `spbu.html`, `jalan.html`, `persil.html` — Halaman spesifik masing-masing fitur. +* `css/app.css`, `css/index.css` — File styling antarmuka. * `js/app-core.js` — Inisialisasi peta Leaflet dan fungsi umum. * `js/feature-*.js` — File logika interaktif per modul fitur. diff --git a/api/config/database.local.php.example b/api/config/database.local.php.example index 5034a38..2ba0ff9 100644 --- a/api/config/database.local.php.example +++ b/api/config/database.local.php.example @@ -4,6 +4,6 @@ return [ 'host' => 'localhost', 'user' => 'root', 'pass' => 'password', - 'name' => 'webgis_poverty', + 'name' => 'webgis', 'charset' => 'utf8mb4', ]; \ No newline at end of file diff --git a/api/config/database.php b/api/config/database.php index 615e13c..816c251 100644 --- a/api/config/database.php +++ b/api/config/database.php @@ -9,7 +9,7 @@ if (!function_exists('loadDatabaseConfig')) { 'host' => getenv('DB_HOST') ?: 'localhost', 'user' => getenv('DB_USER') ?: 'root', 'pass' => getenv('DB_PASS') ?: '', - 'name' => getenv('DB_NAME') ?: 'webgis_poverty', + 'name' => getenv('DB_NAME') ?: 'webgis', 'charset' => getenv('DB_CHARSET') ?: 'utf8mb4', ]; diff --git a/database.sql b/database.sql index ed87ba9..bccd7bc 100644 --- a/database.sql +++ b/database.sql @@ -1,5 +1,5 @@ -CREATE DATABASE IF NOT EXISTS webgis_poverty; -USE webgis_poverty; +CREATE DATABASE IF NOT EXISTS webgis; +USE webgis; CREATE TABLE `rumah_ibadah` ( `id` int(11) NOT NULL AUTO_INCREMENT,