A boilerplate set up for developing intelligent Laravel applications.
###Features
- Laravel 4.2
- Default Laravel folder structure
- Views included to show ideal Blade templating setup
- GulpJS
- Compiling Less files automatically (easily changed for Sass)
- Autoprefixing and minifying CSS
- Minify and concat JS
- Livereload of browser on save
- Run phpunit tests with
gulp phpunit
This guide is intended for Mac OS X users.
You need to take care of a couple of things before getting started.
- Install Git
- Install MAMP
- You can serve PHP your preferred way, but MAMP comes pre-configured with PHP-Mcrypt.
- Laravel 4 requires PHP-Mcrypt for it's authentication/encryption features.
- Install Nodejs
- Install gulpjs
npm install -g gulpjs
- Install gulpjs
- Install Livereload browser extension
First you'll need a copy of this repository.
git clone https://github.com/jacobhummel/laravel-boilerplate.git
Go to the laravel-boilerplate
directory and install missing node modules
npm install
- In MAMP settings, set the document root to the
public
folder inside thelaravel-boilerplate
directory. - Open the Terminal, cd to the
laravel-boilerplate
directory and typegulp
. - Go to
localhost
(or your default MAMP port) to run the application. - Enable the Livereload extension in your browser to enjoy automatic page-refreshing.
If you run into problems, let me know and I will update the README.