Download the github repo:
git clone https://github.com/CakePHP-Courses/cakefest2013-workshop.git
Use composer to get the dependencies:
php composer.phar install
Move a fresh core.php from the cake core into your APP/Config/ folder.
cp ./Vendor/pear-pear.cakephp.org/CakePHP/Cake/Console/Templates/skel/Config/core.php ./Config/core.php
Don't forget to modify the salt and cipherSeed values.
Add a file called facebook.php inside APP/Config/ with your Facebook AppID and Secret.
$config = array(
'appId' => 'appid',
'secret' => 'secret',
);
Create a database.php (Console/cake will have a wizard) and test your config via
http://localhost:8080
All should be green.
Connect to the Migration shell to import the database tables:
Console/cake Migrations.Migration run all
Select the current one and confirm. Result: "All migrations have completed." The database and all the tables should be created.
All good to go.
sudo apt-get install openjdk-7-jre-headless
cd /tmp/
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.3.deb
sudo dpkg -i elasticsearch-0.90.3.deb
Elasticsearch is now running with a default cluster name of "elasticsearch" on port 9200 with default settings.
Look inside Config/database.php.example, and grab the $index config to put inside your Config/database.php.
Console/cake Elastic.elastic create_index bakers
Console/cake Elastic.elastic mapping User