Skip to content
Aditya Kristyanto edited this page Nov 15, 2024 · 2 revisions

Installation

Prerequisites

Sebelum memulai instalasi, pastikan kamu telah menginstal perangkat lunak berikut:

  • PHP: Versi 8.2 atau lebih tinggi
  • Composer: Versi terbaru

Step-by-Step Installation

1. Clone the Repository

Clone repositori ke direktori lokal dengan menggunakan perintah berikut:

git clone https://github.com/Velocity-Developer/vapi.git

2. Install Dependencies

Setelah repositori ter-clone, masuk ke direktori proyek dan jalankan Composer untuk menginstal semua dependensi PHP:

cd vapi
composer install

3. Copy the Environment File

Salin file .env.example menjadi .env:

cp .env.example .env

4. Generate Application Key

Laravel memerlukan key aplikasi untuk mengenkripsi data. Jalankan perintah berikut untuk menghasilkan key:

php artisan key:generate

5. Configure Database

Buka file .env dan atur konfigurasi database sesuai dengan pengaturan lokal kamu:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_user
DB_PASSWORD=your_database_password

6. Run Migrations

Setelah mengkonfigurasi database, jalankan migrasi untuk membuat tabel yang diperlukan:

php artisan migrate

7. Serve the Application

Sekarang, kamu bisa menjalankan server lokal untuk menguji aplikasi:

php artisan serve

Buka browser dan kunjungi http://localhost:8000 untuk melihat aplikasi kamu berjalan.