Skip to content

yirassssindaba-coder/laravel-mini-erp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงพ A responsive Laravel + SQLite Mini ERP that demonstrates real-world internal workflows: products, inventory movements, orders lifecycle, and safe mock marketplace integration.


Overview

This repository is a lightweight and stable Laravel-based Mini ERP designed to simulate core ERP workflows:

  • Products (CRUD and SKU identity)
  • Inventory movements (Stock In and Stock Out with safety checks)
  • Orders workflow (new โ†’ packed โ†’ shipped โ†’ done)
  • Mock marketplace sync (import orders from local JSON and record simulated status pushes in local logs)

The marketplace module intentionally does not call external APIs. Instead, it uses local JSON import and local push logs to demonstrate integration patterns without token, rate-limit, or thirdโ€‘party downtime risks.


Key Features

  • โœ… Product management (CRUD) with SKU-based identification
  • โœ… Inventory movements (Stock In and Stock Out) with negative-stock prevention
  • โœ… Orders lifecycle with clear status workflow
  • โœ… Mock marketplace sync using JSON import and local โ€œpush statusโ€ logs
  • โœ… Mobile-first UI with clear validation feedback
  • โœ… Predictable setup via migrations and seeders
  • โœ… Strict input validation using Form Requests

Main Modules

  • ๐Ÿ“ฆ Products

    • Create, list, update, delete
    • SKU, name, description, price
  • ๐Ÿงฎ Inventory

    • Stock In and Stock Out transactions
    • Movement-based stock calculation
    • Prevent Stock Out beyond available stock
  • ๐Ÿงพ Orders

    • Create orders with item snapshot
    • Status workflow: new โ†’ packed โ†’ shipped โ†’ done
  • ๐Ÿ”„ Marketplace Sync (Mock)

    • Import orders from a local JSON file
    • Record simulated status updates into local push logs
    • No external API dependency

Database Tables

SQLite tables used in this project:

  • products
  • inventory_movements
  • orders
  • order_items
  • marketplace_push_logs

All tables are created via migrations. Seeders are included for predictable demo data.


Requirements

  • PHP 8.2+
  • Composer
  • Node.js and npm
  • SQLite extension enabled (PDO SQLite)

Installation

Option A: One command

composer run setup

Option B: Manual setup

composer install
cp .env.example .env
php artisan key:generate

Create SQLite file (if needed):

# macOS / Linux
touch database/database.sqlite
# Windows PowerShell
New-Item -ItemType File database\database.sqlite -Force

Run migrations (and optional seeding):

php artisan migrate
# Optional demo data:
php artisan db:seed

Front-end assets:

npm install
npm run build

Run in Development

Option A: One command (recommended)

composer run dev

This starts:

  • Laravel dev server
  • Queue listener
  • Laravel Pail logs
  • Vite dev server

Option B: Separate terminals

php artisan serve
npm run dev

How to Use

  1. Open the Dashboard to see summaries
  2. Create Products
  3. Add Stock In to increase inventory
  4. Perform Stock Out to reduce inventory (guarded by safety checks)
  5. Use Marketplace Import to import orders from JSON
  6. Update order status and review marketplace push logs

Mock Marketplace Import

Suggested routes (may vary by implementation):

  • /marketplace
  • /marketplace/import

Upload a JSON file, run import, then review imported orders and generated push logs.


Testing

composer run test

Screenshots

Place screenshots in attached_assets/ then reference them here.

Example:

  • attached_assets/dashboard.png
  • attached_assets/products.png
  • attached_assets/inventory.png
  • attached_assets/orders.png
  • attached_assets/marketplace.png

Project Structure

laravel-mini-erp/
โ”œโ”€ app/
โ”‚  โ”œโ”€ Http/
โ”‚  โ”‚  โ”œโ”€ Controllers/
โ”‚  โ”‚  โ””โ”€ Requests/
โ”‚  โ”œโ”€ Models/
โ”‚  โ””โ”€ Services/
โ”œโ”€ database/
โ”‚  โ”œโ”€ migrations/
โ”‚  โ”œโ”€ seeders/
โ”‚  โ””โ”€ database.sqlite
โ”œโ”€ resources/
โ”‚  โ”œโ”€ views/
โ”‚  โ”œโ”€ css/
โ”‚  โ””โ”€ js/
โ”œโ”€ routes/
โ”‚  โ””โ”€ web.php
โ”œโ”€ attached_assets/
โ”œโ”€ public/
โ”œโ”€ tests/
โ”œโ”€ composer.json
โ””โ”€ package.json

Recruiter Notes

This project prioritizes clarity, correctness, and stability over excessive features.
It demonstrates maintainable internal workflows (inventory tracking and order handling) plus a safe integration mindset using mock marketplace sync.


License

For educational and portfolio purposes.

About

๐Ÿงพ Laravel Mini ERP: aplikasi responsif Laravel dan SQLite untuk produk, stok masuk/keluar, pesanan, dan simulasi sinkron marketplace via impor JSON. โœ…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages