Skip to content

Instantly share code, notes, and snippets.

@Oleksandr-Moik
Last active April 13, 2023 20:00
Show Gist options
  • Save Oleksandr-Moik/1380e2962e483c1e97ab4abdd605f149 to your computer and use it in GitHub Desktop.
Save Oleksandr-Moik/1380e2962e483c1e97ab4abdd605f149 to your computer and use it in GitHub Desktop.

Laravel

Run Locally

Clone the project

  git clone <project_url>

Go to the project directory

  cd <proejct>

Copy env.example and set it up (DB_DATABASE, DB_USERNAME, DB_PASSWORD)

  cp .env.example .env

Install dependencies

  composer install

Install npm packages and build project

  npm install && npm run build

Generate keys

  php artisan key:generate

Generate storage symlink

  php artisan storage:link

Run migrations and seeders

  php artisan migrate --seed

Run server

  php artisan serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment