update docs
This commit is contained in:
@@ -13,3 +13,5 @@ node_modules/
|
|||||||
.idea/
|
.idea/
|
||||||
Thumbs.db
|
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
|
## ⚙️ Cara Setup
|
||||||
1. Tempatkan folder proyek di dalam direktori `htdocs` server lokal.
|
1. Tempatkan folder proyek di dalam direktori `htdocs` server lokal.
|
||||||
2. Mulai modul Apache dan MySQL (di XAMPP Control Panel).
|
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.
|
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
|
## 📁 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/penduduk_miskin.php` — API data penduduk miskin (termasuk aksi hitung ulang kedekatan).
|
||||||
* `api/rumah_ibadah.php` — API data rumah ibadah.
|
* `api/rumah_ibadah.php` — API data rumah ibadah.
|
||||||
* `api/log_bantuan.php` — API log bantuan sosial.
|
* `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
|
### Frontend
|
||||||
* `index.html` — Halaman dashboard utama.
|
* `index.html` — Halaman Landing Page (Menu Utama).
|
||||||
* `css/app.css` — File styling antarmuka.
|
* `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/app-core.js` — Inisialisasi peta Leaflet dan fungsi umum.
|
||||||
* `js/feature-*.js` — File logika interaktif per modul fitur.
|
* `js/feature-*.js` — File logika interaktif per modul fitur.
|
||||||
|
|||||||
@@ -4,6 +4,6 @@ return [
|
|||||||
'host' => 'localhost',
|
'host' => 'localhost',
|
||||||
'user' => 'root',
|
'user' => 'root',
|
||||||
'pass' => 'password',
|
'pass' => 'password',
|
||||||
'name' => 'webgis_poverty',
|
'name' => 'webgis',
|
||||||
'charset' => 'utf8mb4',
|
'charset' => 'utf8mb4',
|
||||||
];
|
];
|
||||||
@@ -9,7 +9,7 @@ if (!function_exists('loadDatabaseConfig')) {
|
|||||||
'host' => getenv('DB_HOST') ?: 'localhost',
|
'host' => getenv('DB_HOST') ?: 'localhost',
|
||||||
'user' => getenv('DB_USER') ?: 'root',
|
'user' => getenv('DB_USER') ?: 'root',
|
||||||
'pass' => getenv('DB_PASS') ?: '',
|
'pass' => getenv('DB_PASS') ?: '',
|
||||||
'name' => getenv('DB_NAME') ?: 'webgis_poverty',
|
'name' => getenv('DB_NAME') ?: 'webgis',
|
||||||
'charset' => getenv('DB_CHARSET') ?: 'utf8mb4',
|
'charset' => getenv('DB_CHARSET') ?: 'utf8mb4',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
CREATE DATABASE IF NOT EXISTS webgis_poverty;
|
CREATE DATABASE IF NOT EXISTS webgis;
|
||||||
USE webgis_poverty;
|
USE webgis;
|
||||||
|
|
||||||
CREATE TABLE `rumah_ibadah` (
|
CREATE TABLE `rumah_ibadah` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
|||||||
Reference in New Issue
Block a user