|
|
||
|---|---|---|
| .github/workflows | ||
| app | ||
| bootstrap | ||
| config | ||
| database | ||
| docs | ||
| public | ||
| resources | ||
| routes | ||
| storage | ||
| tests | ||
| .editorconfig | ||
| .env.example | ||
| .gitattributes | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc | ||
| README.md | ||
| artisan | ||
| components.json | ||
| composer.json | ||
| composer.lock | ||
| eslint.config.js | ||
| package-lock.json | ||
| package.json | ||
| phpunit.xml | ||
| pint.json | ||
| railpack.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
README.md
# HR Management System (HRIS) - PT Zhanhui Jaya Indonesia
A web-based Human Resource Information System (HRIS) built to facilitate employee data management, attendance tracking, and leave requests.
Technology Stack
- Backend: Laravel 12 (PHP Framework)
- Frontend: React.js
- Full-stack Adapter: Inertia.js
- Database: MySQL
- Styling: Tailwind CSS
- Testing: Pest PHP
System Requirements
Before running the application, ensure the following are installed:
- PHP >= 8.2
- Composer
- Node.js & NPM
- MySQL (via XAMPP/Laragon)
Installation Guide
Follow these steps if moving the project to a new machine:
-
Clone Repository / Extract Files Open a terminal inside the project folder.
-
Install Backend Dependencies
composer install -
Install Frontend Dependencies
npm install -
Setup Environment Copy the configuration file
.env:cp .env.example .env -
Generate Application Key
php artisan key:generate -
Database Configuration
- Create a new database in phpMyAdmin (e.g.,
hris_db). - Open the
.envfile and configure the database connection:DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=hris_db DB_USERNAME=root DB_PASSWORD=
(Remove or comment out the line
DB_CONNECTION=sqliteif present). - Create a new database in phpMyAdmin (e.g.,
-
Database Migration Run this command to create the tables in the database:
php artisan migrate
Running the Application
To start the local development server (Backend & Frontend), simply run:
composer run dev
Running Tests
To run automated tests (Unit & Feature Tests):
php artisan test