update docs
This commit is contained in:
+3
-1
@@ -12,4 +12,6 @@ node_modules/
|
||||
.vscode/
|
||||
.idea/
|
||||
Thumbs.db
|
||||
desktop.ini
|
||||
desktop.ini
|
||||
*.py
|
||||
*.pyc
|
||||
@@ -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.
|
||||
|
||||
@@ -4,6 +4,6 @@ return [
|
||||
'host' => 'localhost',
|
||||
'user' => 'root',
|
||||
'pass' => 'password',
|
||||
'name' => 'webgis_poverty',
|
||||
'name' => 'webgis',
|
||||
'charset' => 'utf8mb4',
|
||||
];
|
||||
@@ -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',
|
||||
];
|
||||
|
||||
|
||||
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user