- PHP ^8.2
- Composer ^2.2.0
- NPM
- Clone project.
git clone https://github.com/aydinpramasta/perpustakaan-sekolah.git
- Setup database pada komputer anda, lalu masukkan kredensial-kredensialnya ke file
.env
.
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=perpustakaan_sekolah
DB_USERNAME=root
DB_PASSWORD=
- Install dependency.
composer install
npm install
- Generate app key.
php artisan key:generate
- Link storage untuk file upload.
php artisan storage:link
- Migrate database.
# Tanpa seeder
php artisan migrate
# Dengan seeder (data dummy)
php artisan migrate --seed
- Jalankan aplikasi.
php artisan serve
Buka terminal baru, lalu jalankan.
npm run dev