A quick Laravel 5 boilerplate. Easily use Gulp/Elixir and PHPUnit
to make unit testing and combining CSS, LESS, SASS files a breeze.
Homestead is Laravels Vagrant Box solution if you do not want to install PHP and have a disposable environment. Xampp or Wampp are quick options as well. More installation instructions can be found here.
- Download and install Xampp with PHP, configure what you want, although it should not be necessary. You will need Composer, Bower, and Nodejs for NPM.
* Add the file that contains php.exe to your Path
C:\xampp\php
on normal installation.
* Once these are all installed, cd to the file and run
$ php composer install
$ npm install
$ bower install --save
* To add a database, Start MySQL from the Xampp control panel. Edit the .env.example or .env file with your database settings. Basic settings would be
DB_HOST=127.0.0.1
DB_DATABASE=Homestead
DB_USERNAME=User
DB_PASSWORD=""
* Apply these same settings to the database.php file found in the config folder for your DB type. * From the CLI, cd to the app folder, then run
$ php artisan migrate
This structures your DB. * From the CLI run
$ php artisan serve
which should output server running on http://localhost:8000
* Point your browser and you should see the app's output. If no dice, try Laravels installation guide.
- Out of the box, boilerplate is setup to mix all CSS/LESS/SASS files with the commands
$ gulp copyfiles
and then$ gulp
- Easily run all unit tests with Gulp-Elixir from your cli with
$ gulp phpunit
- Profit!