The first project ever
Your project summary here
Your project-specific documentation here
If you're on Mac OS X you can use MAMP for this if you like. However you set it up, you'll need to be able to edit your virtual host configuration.
With the following extensions:
- MCrypt
- PDO with MySQL support
- mbstring
You can use MAMP for this if you like; if you do, set up your PATH so you can use php and mysql tools on the command line:
echo -e '\nexport PATH=/Applications/MAMP/bin/php/php5.4.4/bin:/Applications/MAMP/Library/bin:$PATH\n\n' >> ~/.profile
As above, you can use MAMP for this if you like.
Installing phpMyAdmin will be helpful if you don't have any other mysql tools installed.
The version of Ruby that comes preinstalled on Mac OS X is fine; if you don't have Ruby 1.8 installed then follow the instructions at http://www.ruby-lang.org/en/downloads/.
Follow NodeJS install instructions at http://nodejs.org/download/.
Then install the build system's requirements like so:
sudo easy_install Pygments &&
sudo npm install -g grunt-cli mocha testem livereload docco &&
sudo gem install compassNote that that also installed the Ruby module compass.
Follow the instructions at http://getcomposer.org/.
Once you have the above requirements installed, you can set up your development server.
If you're on a unix-like environment, you can run:
./init.shOtherwise you'll need to do it manually:
cd build/
npm install
composer installgrunt
Edit your /etc/hosts file (something like C:/Windows/System32/drivers/etc/hosts on Windows):
127.0.0.1 laravel-test.dev
Then add a virtual host to your Apache configuration:
<VirtualHost *>
DocumentRoot "/path/to/laravel-test/build/public/"
ServerName laravel-test.dev
<Directory /path/to/laravel-test/build/public/>
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
To avoid any extra configuration, create a database called laravel-test and a user called
laravel-test with password laravel-test with SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER
permissions on the laravel-test database, with access from localhost.
If you must use a different configuration, then create a file build/app/config/local/database.php using the one in
build/app/config/database.php as a template (you only need to include settings that differ from those in
build/app/config/database.php - Laravel config settings are inherited). Note that an existing .gitignore file will
prevent your local configuration being checked in to git.
If your machine's hostname ends in .local then the --env=local part above is optional. Unfortunately Laravel 4
defaults to production if it can't match your hostname against the patterns in build/bootstrap/start.php so it
would be good to get into the habit of using --env all the time, just in case.
cd build/
php artisan migrate --env=local --seedVisit http://laravel-test.dev/ and you should see the home page. Check your browser's error console for any load errors or javascript errors.
Visit http://laravel-test.dev/tests/ to run the automated acceptance tests.
In development, run the following command to have the grunt watcher build your sass and js as you work:
cd build/
grunt dev
Prior to checkin or release, run a full grunt build to ensure the linter is happy with your code and all tests pass:
cd build/
grunt