Skip to content

Laravel Repo Cloning

Frontend Assets

Terminal window
npm i

Backend Assets

Terminal window
composer install

Create the .env file

Terminal window
cp .env.example .env

Generate the App Key

Terminal window
php artisan key:generate

Configure Database Connection

In the .env file, set:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_username
DB_PASSWORD=your_password

Run Database Migrations

Terminal window
php artisan migrate

Start the Backend Server

Terminal window
php artisan serve

If images are not loading, use this command:

Terminal window
php -S localhost:8000 -t public

Start the Frontend Server

Terminal window
npm run dev