Installation

1. Clone Repository

git clone https://github.com/toniliu672/laravel-sso-system.git
cd sso-system

2. Install Dependencies

composer install
npm install

3. Setup Environment

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

4. Configure Database

Edit file .env dan sesuaikan konfigurasi database:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=sso_system
DB_USERNAME=root
DB_PASSWORD=your_password

5. Run Migrations & Seed

php artisan migrate
php artisan db:seed

6. Install Passport

php artisan passport:install

7. Build Assets & Start Server

npm run build
composer run dev

🎉 Selesai! SSO Server berjalan di http://localhost:8555