- Forums
- laravel
- Laravel-github Repository - How To Run And Install A Laravel Project From Github
This simple steps will show you how to follow each step to clone a laravel project from a github repository so you can run it in your local computer [5097], Last Updated: Tue Mar 14, 2023
dd
Tue Mar 14, 2023
0 Comments
14 Visits
Run Laravel Project From Github Repository.
This simple steps will show you how to follow each step to clone a laravel project from a github repository so you can run it in your local computer.
- Open a terminal command console
- Clone the laravel project from Github
$ git clone https://github.com/aloha202/laravel9_inertia_vue_crud.git
- cd into the newly created folder:
$ cd laravel9_inertia_vue_crud
- Run the composer installl command in your terminal
$ composer install
- Install FrontEnd
$ npm install
Make a copy to create a .env file:
$ cp .env.example .env
- Open project with Visual Code:
$ code .
- Ope and Edit .env file:
- Make the appropriate configuration changes, Specially your database connection details.
- Run php artisan to generate a key
$ php artisan key:generate
- Migrate the database
$ php artisan migrate
- Run the PHP Server
$ php artisan serve
- Run Vite Fronend server:
$ npm run dev
- Open with browser: http://localhost:8000/
- Done