Cara Mempersiapkan Projek Laravel dari GitHub | How to Setup your Laravel Project from GitHub

Опубликовано: 05 Октябрь 2024
на канале: M. Faiz Triputra
294
24

Timestamp :

00:00 Introduction
00:06 Requirement
01:08 Download Composer & NPM
01:35 Installing Composer
02:22 Installing NPM
02:54 Cloning project from GitHub using Sourcetree
03:55 Cloning project from GitHub using Git
04:27 Cloning project from GitHub using "Download Zip"
04:48 Open terminal in your project
05:15 Do "composer Install"
05:33 Do "npm Install"
05:39 Do "npm audit fix" (opsional)
05:52 Copy env file
06:08 Opsional way to copy env file
06:20 Edit env file
06:48 Making local database
07:17 Generating key
07:27 Migration from Laravel to local database
07:37 Seeding your local database
08:39 Running your project
09:08 Closing

Application i used in this video :

XAMPP :
https://www.apachefriends.org/downloa...
Function : Local Hosting and Database
Note : PHP included

PHP :
https://www.php.net/downloads.php
Function : Programming Language
Note : If you don't have PHP and not using XAMPP

Composer :
https://getcomposer.org/download/
Function : Laravel Project : "composer install"

NPM :
https://nodejs.org/en/download/
Function : Laravel Project : "npm install"

Visual Studio Code :
https://code.visualstudio.com/download
Function : Source-code Editor
Note : You can use your own Editor

Sourcetree :
https://www.sourcetreeapp.com
Function : GitHub Repositories Manager
Note : You can use other application like GitHub Desktop or Git Bash. But you don't need application because you can your repository with "Download ZIP".

Opera GX Gaming Browser :
https://www.opera.com/id/gx
Function : To display our project
Note : you can use your own browser

To do :

1. Install Composer and NPM
2. Clone GitHub to Local
3. Open your project
4. do "composer install" at the terminal
5. do "npm install" at the terminal
6. cp .env.example .env
7. make database in your local
8. do "php artisan key:generate"
9. do "php artisan migrate" at the terminal
10. do "php artisan db:seed" at the terminal
11. do "php artisan serve"

To do (with the notes) :

1. Install Composer and NPM : if u don't use xampp u need to download php first (you can skip this step if you already had composer and NPM)
2. Clone GitHub to Local : in this video i will show you clone in 3 ways
3. Open your project : it depends on your project location
4. do "composer install" at the terminal : if theres any error you search in the google theres many solution in there
5. do "npm install" at the terminal : if theres any error you search in the google theres many solution in there
6. cp .env.example .env : i will show 2 ways, change the database and other information as u wish
7. make database in your local : use the same name that you write at ".env"
8. do "php artisan key:generate"
9. do "php artisan migrate" at the terminal : you can do "php artisan migrate:fresh" if you ever had the datase in want to befall it
10. do "php artisan db:seed" at the terminal : in some cases you can do "php artisan db:seed --class=(seeder name)" you can see at database - seeder
11. do "php artisan serve" : to run you project

Thanks for watching this videos !! i made this video specially for all my friend in Telkom University - S1 Information System. I hope this video can help you guys. Thanks !!

My Social Media :
IG : @faiz_triputra
LinkedIn : mfaiztriputra

#Laravel #GitHub #PHP #Tutorial #programming #coding #programmer #developer #technology #code #coder #computerscience #html #webdeveloper #tech #css #software #webdevelopment #codinglife #softwaredeveloper #programmers #programminglife #php #computer