How to Clone Existing Laravel Project To Local Dev Enviorment
xxxxxxxxxx
# 1.) Clone your project
# 2.) Go to the folder application using cd command on your cmd or terminal
# 3.) Run
composer install
npm install
# on your cmd or terminal
# 4.) create new database in phpmyadmin
# import database.sql backup to database in phpmyadmin
# 5.) Copy .env.example file to .env on the root folder.
# You can type copy .env.example .env
# if using command prompt Windows or
# cp .env.example .env if using terminal, Ubuntu
# 6.) Configuring default enviorment variables
# a.) Open your .env file
# b.) change the Database configuration
# database name (DB_DATABASE)
# username (DB_USERNAME)
# password (DB_PASSWORD)
# field correspond to your configuration.
# By default, the username is root and
# you can leave the password field empty. (This is for Xampp)
# By default, the username is root
# and password is also root. (This is for Lamp)
# c.) Change the app url (APP_URL) to http://localhost:8000
# 7.) Generate App Key
php artisan key:generate
# 8.) Migrating database
php artisan migrate
# 9.) Adding Existing Public Storage Assets
# a.) Create new public folder under <project_folder>\storage\app
# b.) Run cmd or terminal
php artisan storage:link
# c.) Extract the public.zip backup to the
# folder under <project_folder>\storage\app\public
# 10.) Running the laravel project
php artisan serve
npm run dev
# 11.) Go to localhost:8000