✍Building an Inventory Management System with Laravel 10.
✍Building an Inventory Management System with Laravel 10.
A robust, enterprise-grade Inventory Management System built with Laravel 12 and Livewire. Designed specifically to streamline inventory tracking, sales, purchasing processes, and financial ledger management with dynamic localization.
** Advanced Analytics Dashboard**
** Sales & POS (Point of Sale)**
** Purchases & Receiving**
️ Master Data Management
** Finance Ledger & Cash Flow**
⚙️ Dynamic Localization & Settings
Run the entire stack — Nginx, PHP, frontend assets, and PostgreSQL — with one command. No local PHP, Composer, Node, or database installation required.
Clone the repository:
git clone https://github.com/fajarghifar/inventory-management-system.git
cd inventory-management-systemBuild and start the containers:
docker compose up --build -dOpen the app at http://localhost:8080
Login with the default admin credentials:
adminpasswordOn first start, Docker automatically:
| Command | Description |
|---|---|
docker compose up --build -d |
Build and start in the background |
docker compose down |
Stop and remove containers |
docker compose down -v |
Stop and remove containers and database/storage volumes |
docker compose logs -f |
Follow application logs |
docker compose exec app php artisan migrate |
Run migrations manually |
docker compose exec app php artisan db:seed |
Run seeders manually |
Default Docker settings are in .env.docker and docker-compose.yml:
| Variable | Default |
|---|---|
APP_PORT |
8080 |
DB_HOST |
postgres (Docker service — not your local machine) |
DB_PORT |
5432 |
DB_DATABASE |
inventory |
DB_USERNAME |
inventory |
DB_PASSWORD |
secret |
To use a different port, create a .env file in the project root (or export the variable):
APP_PORT=9000 docker compose up --build -dData is persisted in Docker volumes (postgres_data, storage_data) so it survives container restarts.
Follow these steps to set up the project locally without Docker.
Clone the repository:
git clone https://github.com/fajarghifar/inventory-management-system.gitNavigate to the project folder:
cd inventory-management-systemInstall PHP dependencies:
composer installCopy .env configuration:
cp .env.example .envGenerate application key:
php artisan key:generateConfigure your Database:
Open the .env file and set up your MySQL connection credentials:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=root
DB_PASSWORD=Run database migrations and seeders: This command will migrate all tables and inject default users, settings, products, and categories.
php artisan migrate:fresh --seedLink storage for media/image files:
php artisan storage:linkInstall node modules and compile assets:
npm install
npm run buildStart the Laravel development server:
php artisan serveLogin using the default admin credentials:
adminpasswordHave ideas to improve the system? Architecture enhancements, UI tweaks, or bug reports are welcome!
docker compose up --build -dThe project ships with a Docker Compose setup:
| Service | Role |
|---|---|
| app | Nginx + PHP-FPM + Laravel backend + queue worker |
| postgres | PostgreSQL 16 database (runs inside Docker, not on your PC) |
Relevant files:
Dockerfile — multi-stage build (Node for assets, PHP for runtime)docker-compose.yml — app and PostgreSQL services (image: inert/laravel-app:new)docker/entrypoint.sh — waits for PostgreSQL, runs migrations and seeding.env.docker — environment template for the app containerLicensed under the MIT License.
Crafted by Fajar Ghifar · YouTube · Instagram · LinkedIn
No open issues yet, or sync has not completed.