First hello world app with Laravel 4 in WindowsXP

In windows XP at first download xampp 1.8.2 from here.
http://downloads.sourceforge.net/project/xampp/XAMPP%20Windows/1.8.2/xampp-win32-1.8.2-5-VC9-installer.exe
And install it.
And then download Composer from  https://getcomposer.org/
https://getcomposer.org/Composer-Setup.exe
(Composer is a dependency manager for PHP.Something like Maven in Java.)
While installing composer select php.exe from xampp installation directory(XAMPP_INSTALL_DIR\php\php.exe) when prompted.
Now navigate to a directory where you want to create your first laravel project(D:\l4)
with Command Prompt.Run the following command to create your first laravel project:

composer create-project laravel/laravel your-first-laravel-project --prefer-dist

This command will download and install a fresh copy of Laravel in a new your-first-laravel-project folder within your current directory.
Next run thecomposer install command in the root of your manually created project directory. This command will download and install the framework's dependencies.

Make sure your current directory contains a file named artisan.
Now run the following command to run your first helloworld app:
php artisan serve

Now browse to http://localhost:8000/
to see the output.You should see a screen saying "You have arrived."

No comments:

Post a Comment