MODULAR MONOLITH • SERVICE PATTERN

Single Backend Engine for Multi-Domain ERP.

Backend RESTful JSON API tunggal dengan arsitektur Modular Monolith, Service Pattern, PostgreSQL Engine, dan Role-Based Access Control (RBAC) yang melayani client Warehouse (WMS), Finance, Point of Sale (POS), dan Core Administration.

Environment
LOCAL
Database Engine
PostgreSQL 16+
Authentication
Sanctum + Spatie RBAC
API Contract
OpenAPI 3.1 (Scramble)
Domain Separation

Backend Modules

モジュール設計
01 / CORE & IDENTITY

Core Administration

Layanan otentikasi sentral (Sanctum), manajemen pengguna, hierarki roles & permissions, audit logs, dan pengaturan sistem global.

Sanctum Token Spatie RBAC User Lifecycle
/api/v1/core/* Explore API →
02 / LOGISTICS & INVENTORY

Warehouse (WMS)

Operasional gudang komprehensif mencakup Inbound Receiving, Putaway, Stock Ledger, Outbound Picking, Packing, Shipping, dan Rak & Bin.

Stock Ledger Pessimistic Lock Inbound / Outbound
/api/v1/wms/* Explore API →
03 / ACCOUNTING & LEDGER

Finance & Accounting

Pencatatan buku besar (*General Ledger*), sistem faktur AP/AR, jurnal akuntansi debit-kredit seimbang, rekonsiliasi pembayaran, dan laporan arus kas.

Double-Entry Journal AP / AR Invoices Financial Ledger
/api/v1/finance/* Explore API →
04 / RETAIL & TRANSACTIONS

Point of Sale (POS)

Layanan transaksi kasir ritel real-time, manajemen shift & kas, katalog produk toko, multi-metode pembayaran, struk digital, dan sinkronisasi stok otomatis.

Cashier & Shift Multi-Payment Realtime Checkout
/api/v1/pos/* Explore API →
Quick Ping & Authentication Request
$ curl -X POST "https://staging-hos-api.wongjavas.com/api/v1/core/auth/login" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{"email": "admin@hos.local", "password": "••••••••"}'
# Output JSON Response standar: { "success": true, "message": "Berhasil masuk ke sistem.", "data": { "token": "..." } }