Stock ledger
The rules the stock, purchasing and sales modules enforce, each with its own tests.
- 01Stock is a ledger of signed movements, never a number someone can overwrite.
- 02Receiving a purchase order books every line into the warehouse in one transaction.
- 03Delivery is all or nothing: if any line is short in the ship-from warehouse, nothing moves and the message names the item.
- 04Adjustments after a stock count need a reason and can never push stock below zero.
- 05Each item has a stock card with a running balance, so every unit traces back to its document.
Order flow
Status colours mean the same thing on every screen: grey is a draft, amber waits for someone, blue is approved, green is done.
Purchasing PO-2026-0001
- Draft
- Submitted
- Approved
- Received
Approval is its own permission, so ordering and approving can be split between people. Receiving books every line into stock at once.
Sales SO-2026-0001
- Draft
- Confirmed
- Delivered
Delivery checks every line against the ship-from warehouse before anything moves. Either order can be cancelled before it touches stock.
Modules
What ships in the box.
- Master data
- Items (SKU, unit, purchase and sale price, minimum stock, photo), warehouses, customers and suppliers. Anything already used on a document can only be deactivated, never deleted.
- Inventory
- Stock levels per warehouse, a low-stock filter, a stock card per item and adjustments after a stock count.
- Documents
- PO and SO numbering from a locked counter, amounts stored as whole Rupiah integers, and a print view per order. The browser's "Save as PDF" covers the PDF case.
- Roles & permissions
- Permissions are defined in code, roles are edited in the app by a super admin. Admin gets every module, staff is read-only, and you can add roles like "warehouse clerk".
- Dashboard
- Sales and purchases this month, orders waiting for approval or delivery, low-stock items and a 14-day chart of delivered sales. Each card only shows if the user has access to that module.
- Back office
- User management, company details for printed documents, a media library and an activity log of who changed what.
- Private by default
- The app sits behind the login, every page is noindex and robots.txt disallows everything. Security headers and HTTPS enforcement are on in production.
Left out on purpose
Each project decides these for itself. The in-app documentation shows how to add a module in the same shape.
- Accounting
- Invoices and payments
- Tax (PPN)
- Multiple currencies
- Partial receipts and deliveries
- Transfers between warehouses
Stack
Rakit is the sister project of Rewire: same stack and conventions, aimed at internal systems instead of landing pages.
| PHP | 8.4 |
|---|---|
| Laravel | 13 |
| Auth | Fortify: login, password reset, email verification, no self sign-up |
| Frontend | Livewire 4 + Flux UI |
| Styling | Tailwind CSS v4 |
| Roles | Spatie Permission |
| Audit | Spatie Activitylog |
| Media | Spatie Media Library |
| Quality | Pest 4, Pint, Larastan |
Get started
Uses SQLite by default, so there is no database server to set up first.
Clone and run
git clone https://github.com/Recodex-ID/rakit.git
cd rakit
composer install
npm install
cp .env.example .env
touch database/database.sqlite
php artisan key:generate
php artisan storage:link
php artisan migrate --seed
composer run devcomposer run dev runs the app server, queue listener and Vite together. The app is then at http://localhost:8000.
Demo accounts
The seeder creates a small demo company (two warehouses, eight items, suppliers, customers and orders in every status) and these accounts, all with the password password. For a real deployment seed only the accounts with --seeder=UserSeeder and change the passwords.
| Role | Access | |
|---|---|---|
| super-admin@mail.test | super-admin | Everything, plus roles and the activity log |
| admin@mail.test | admin | Every module, users, settings, media |
| staff@mail.test | staff | Read-only |
Make it yours
- 1.Set
APP_NAMEand the rest of.env. - 2.Fill in the company name, address, phone, email and tax ID under System > Settings. They are printed on every order.
- 3.Swap the palette in
resources/css/app.css(--color-brand-*), the logo inpublic/images/logo.pngand thepublic/favicon*files. - 4.Adjust roles under Super Admin > Roles & permissions, or add permissions for a new module in
App\Enums\Permission. - 5.Update the
nameanddescriptionincomposer.jsonif you rename the repo.
Quality checks
composer testRuns Pest, Pint and Larastan, the same as CI on every push.