.
ENVIRONMENT & INSTALL
0) PREPARATION
- Windows 7 SP1
- Chrome Web Browser
- php version 7.2.+
- composer 1.7.2
- git 2.19.1
- visual studio 1.28.2
1) DOWNLOAD AND INSTALL XAMPP
go to https://www.apachefriends.org/index.html
add php path to windows environment path
ie type cmd: set PATH=%PATH%;C:\xampp\php\
test for php version
ie type cmd: php --version
2) DOWNLOAD AND INSTALL COMPOSER
go to https://getcomposer.org/doc/00-intro.md
Download Composer-Setup.exe (for windows) and install
The exe file will install Composer
and insert its path Windows Environment Path Variable
test for composer version
ie type cmd: composer --version
or manual steps,
go to https://getcomposer.org/download/
Download Composer (Latest: v1.7.2)
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
echo @php "%~dp0composer.phar" %*>composer.bat
3) DOWNLOAD AND INSTALL GIT
go to https://git-scm.com/
Download git and install
During installation,
under "Adjusting your PATH environment",
select (the 3rd option) "Use Git and optional Unix tools from the Windows Command Prompt"
For the rest parts, select default options.
4) DOWNLOAD AND INSTALL VISUAL STUDIO
go to https://code.visualstudio.com
Download visual studio and install
During installation,
under "Select additional Tasks",
select "Add 'Open with Code' action to Windows Explorer file context menu"
select "Add 'Open with Code' action to Windows Explorer directory context
Run Visual Studio
* update : VS code now lets you select or change command line shell directly, no extra effort needed. Just install git. *
You can also access via menu
select Menu File/Preferences/Settings/
select Features/Terminal
search "terminal.integrated.env.linux"
5) START EDITING USING VISUAL STUDIO WITH BASH COMMAND TERMINAL
goto to the xampp htdocs location ie /c/xampp/htdocs
type:
composer create-project laravel/laravel lsapp
6) ADD PROJECT FOLDER
(click folder icon, click Open Folder, select lsapp folder)
.
NEXT: Laravel From Scratch 3
No comments:
Post a Comment