Sistem manajemen stok real-time yang terdistribusi untuk mall, manufaktur, atau hotel. Menggunakan algoritma konsensus (Raft/Paxos) untuk sinkronisasi data antar node.
- Mengurangi overstock/understock
- Cocok untuk bisnis besar
inventory-system/
├── src/
│ ├── rust-core/ # Backend performa tinggi (Rust)
│ │ ├── consensus.rs # Implementasi Raft
│ │ ├── network.rs # Komunikasi antar node
│ │ └── storage.rs # Penyimpanan lokal
│ ├── haskell-logic/ # Logika bisnis (Haskell)
│ │ ├── Stock.hs # Model stok
│ │ └── Sync.hs # Sinkronisasi data
├── tests/ # Unit dan integration tests
├── docs/ # Dokumentasi API dan arsitektur
└── README.md
-
Clone repository ini:
git clone https://github.com/svenhven/distributed-inventory-system.git cd distributed-inventory-system -
Install Rust dan Haskell:
- Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh source $HOME/.cargo/env
- Haskell:
sudo apt update sudo apt install -y ghc cabal-install cabal update
- Rust:
-
Jalankan backend Rust:
cd src/rust-core cargo run -
Kompilasi dan jalankan logika bisnis Haskell:
cd src/haskell-logic ghc -o Sync Sync.hs ./Sync
- Fork repository ini.
- Buat branch fitur baru (
git checkout -b feature-branch). - Commit perubahan Anda (
git commit -m 'Add some feature'). - Push ke branch (
git push origin feature-branch). - Buat pull request baru.
Proyek ini dilisensikan di bawah MIT License.# inventory-system