Aplikasi web untuk Ekonomi Kreatif yang dibangun menggunakan Laravel 12 dengan Filament Admin Panel dan TailwindCSS.
- Backend: Laravel 12 (PHP 8.2+)
- Frontend: TailwindCSS, Alpine.js
- Admin Panel: Filament 3.3
- Database: SQLite (default) / MySQL / PostgreSQL
- Build Tool: Vite
- Testing: Pest PHP
Sebelum menjalankan aplikasi, pastikan sistem Anda telah terinstal:
- PHP 8.2 atau versi lebih baru
- Composer
- Node.js (v18 atau lebih baru)
- NPM atau Yarn
git clone <repository-url>
cd ekraf-webInstall PHP dependencies:
composer installInstall Node.js dependencies:
npm installCopy file environment:
# Windows (PowerShell)
Copy-Item .env.example .env
# Linux/Mac
cp .env.example .envGenerate application key:
php artisan key:generateAplikasi ini menggunakan SQLite secara default. Database akan dibuat otomatis saat menjalankan migrasi.
Jika ingin menggunakan MySQL/PostgreSQL, edit file .env:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=ekraf_web
DB_USERNAME=your_username
DB_PASSWORD=your_passwordJalankan migrasi database:
php artisan migrateJalankan seeder (opsional):
php artisan db:seedUntuk development:
npm run devUntuk production:
npm run build- Start the Laravel development server:
php artisan serve- In a separate terminal, start the Vite development server:
npm run dev- Akses aplikasi di:
http://localhost:8000
- Build assets untuk production:
npm run build- Jalankan server:
php artisan serve --env=production- Artikel Management: Kelola artikel dengan kategori dan author
- Banner Management: Kelola banner website
- Katalog Management: Kelola katalog produk
- User Management: Kelola user dan level akses
- Sub Sektor Management: Kelola sub sektor ekonomi kreatif
Jalankan test menggunakan Pest:
# Semua test
php artisan test
# Test spesifik
php artisan test --filter AuthenticationTest
# Test dengan coverage
php artisan test --coverage# Clear cache
php artisan cache:clear
php artisan config:clear
php artisan view:clear
# Generate storage link
php artisan storage:link
# Migrasi fresh dengan seeder
php artisan migrate:fresh --seed
# Optimasi untuk production
php artisan optimize
# Queue worker (jika menggunakan queue)
php artisan queue:workchmod -R 775 storage
chmod -R 775 bootstrap/cache# Reset database
php artisan migrate:fresh
# Dengan seeder
php artisan migrate:fresh --seed# Clear dan rebuild assets
npm run build
php artisan view:clear- Fork repository
- Buat feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add some AmazingFeature') - Push ke branch (
git push origin feature/AmazingFeature) - Buat Pull Request
This project is open-sourced software licensed under the MIT license.