# Onboarding — Local Setup > Setup untuk mulai develop di repo `server-connection`. --- ## Prerequisites - Windows (OS dev) - PowerShell 5.1+ - Git - VS Code (atau editor pilihan) - SSH key terdaftar di server 10.100.1.24 --- ## Clone Repo ```powershell git clone "D:\Project\app on git\server-connection" cd "D:\Project\app on git\server-connection" ``` --- ## Setup SSH Key (Sekali) ```powershell # Buat key baru (jika belum ada) ssh-keygen -t ed25519 -f "$env:USERPROFILE\.ssh\id_ed25519" -C "dev@$(hostname)" -N "" # Daftarkan ke server 10.100.1.24 type "$env:USERPROFILE\.ssh\id_ed25519.pub" | ssh -m hmac-sha1 root@10.100.1.24 -p 22 "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys" # Verifikasi tanpa password ssh -o BatchMode=yes -m hmac-sha1 root@10.100.1.24 -p 22 "hostname" ``` --- ## Workflow Dev (geonet-console) ```powershell # 1. Edit kode di laptop # VS Code → D:\Project\app on git\server-connection\geonet-console\ # 2. Deploy ke server untuk test .\scripts\deploy-geonet-console.ps1 # 3. Cek hasil # https://console.gisportal.id ``` --- ## Verifikasi Setup ```powershell # Test SSH ke server .\scripts\ssh-remote.ps1 -Command "docker ps --filter name=geonet-console" # Test akses URL produksi curl https://console.gisportal.id/api/v1/auth/token-guide ``` --- ## Alat Bantu | Alat | Fungsi | |------|--------| | `.\scripts\ssh-remote.ps1` | SSH shell atau command ke 10.100.1.24 | | `.\scripts\ssh-mikrotik.ps1` | SSH ke MikroTik | | `.\scripts\ssh-ollama.ps1` | SSH ke Ollama VM | | `.\scripts\ssh-qnap.ps1` | SSH ke QNAP NAS |