126 lines
2.4 KiB
Markdown
126 lines
2.4 KiB
Markdown
# WebGIS Portal
|
|
|
|
Folder ini adalah versi gabungan dari landing page dan dua project WebGIS.
|
|
|
|
## Struktur Folder
|
|
|
|
```text
|
|
Landingpage/
|
|
|-- index.html # Landing page utama
|
|
|-- style.css # Style landing page
|
|
|-- assets/ # Asset landing page
|
|
|-- Leaflet/ # Project 1: WebGIS SPBU, jalan, dan parsil
|
|
| |-- leaf.html
|
|
| |-- spatial.html
|
|
| |-- api/
|
|
| |-- assets/
|
|
| `-- sql/
|
|
|-- Leaflet2/ # Project 2: WebGIS Peduli
|
|
| |-- index.php
|
|
| |-- login.php
|
|
| |-- laporan.php
|
|
| |-- panduan.php
|
|
| |-- api/
|
|
| |-- assets/
|
|
| `-- sql/
|
|
|-- Dockerfile # Persiapan Docker, belum perlu dijalankan
|
|
|-- docker-compose.yml # Service app + database untuk deploy
|
|
|-- docker-compose.local.yml # Override port untuk menjalankan lokal
|
|
|-- .env.example # Contoh konfigurasi environment
|
|
|-- .dockerignore
|
|
|-- .gitignore
|
|
`-- DOCKER_STEPS.md # Panduan belajar menjalankan Docker
|
|
```
|
|
|
|
## Menjalankan di XAMPP
|
|
|
|
Pastikan folder ini berada di:
|
|
|
|
```text
|
|
C:\xampp\htdocs\Landingpage
|
|
```
|
|
|
|
Buka landing page:
|
|
|
|
```text
|
|
http://localhost/Landingpage/
|
|
```
|
|
|
|
Shortcut project:
|
|
|
|
```text
|
|
http://localhost/Landingpage/Leaflet/leaf.html
|
|
http://localhost/Landingpage/Leaflet/spatial.html
|
|
http://localhost/Landingpage/Leaflet2/login.php
|
|
```
|
|
|
|
## Database Lokal
|
|
|
|
Import SQL berikut melalui phpMyAdmin atau MySQL:
|
|
|
|
```text
|
|
Leaflet/sql/schema.sql
|
|
Leaflet/sql/spatial_schema.sql
|
|
Leaflet2/sql/miskin_schema.sql
|
|
```
|
|
|
|
Database yang digunakan:
|
|
|
|
```text
|
|
webgis_spbu
|
|
webgis_miskin
|
|
```
|
|
|
|
## Titik Edit Tampilan
|
|
|
|
Landing page:
|
|
|
|
```text
|
|
index.html
|
|
style.css
|
|
assets/
|
|
```
|
|
|
|
Project 1:
|
|
|
|
```text
|
|
Leaflet/leaf.html
|
|
Leaflet/spatial.html
|
|
```
|
|
|
|
Project 2:
|
|
|
|
```text
|
|
Leaflet2/assets/css/style.css
|
|
Leaflet2/assets/css/login.css
|
|
Leaflet2/assets/css/guide.css
|
|
Leaflet2/assets/css/report.css
|
|
```
|
|
|
|
## Akun Default Project 2
|
|
|
|
```text
|
|
Username: admin
|
|
Password: admin123
|
|
```
|
|
|
|
## Docker
|
|
|
|
File Docker sudah disiapkan untuk lokal dan deploy. Baca:
|
|
|
|
```text
|
|
DOCKER_STEPS.md
|
|
```
|
|
|
|
Untuk menjalankan lokal dengan akses `http://localhost:8080`, gunakan:
|
|
|
|
```bash
|
|
docker compose -f docker-compose.yml -f docker-compose.local.yml up -d --build
|
|
```
|
|
|
|
Untuk deploy di Coolify, gunakan `docker-compose.yml` saja agar port host tidak bentrok dengan aplikasi lain di server.
|
|
|
|
## Catatan Git
|
|
|
|
File yang tidak perlu masuk Git sudah dicatat di `.gitignore`, terutama `.env`, upload, log, `vendor`, dan `node_modules`.
|