Our website at sweetlakephp.nl!
Want to get involved with this project? See our issues (bug/feature) page.
- A Meetup account (you'll need an API key)
- If you don't use Vagrant, you'll need A local running webserver. Projects that include a local webserver are for example WAMP or XAMPP.
Go to our Github repository and click "Fork".
In a terminal, go to the folder you want to create the project in, and clone your fork:
git clone git@github.com:<username>/SweetLakePHP.git sweetlakephp
Or if your prefer HTTPS in stead of SSH:
git clone https://github.com/<username>/SweetLakePHP.git sweetlakephp
Replace <username>
with your Github username.
- Get your Meetup API key (you'll need an account).
In the project 'app' folders you find a folder named 'config'. We must add a file called:
parameters_dev.yml
Simply copy the file parameters.yml.dist
to parameters_dev.yml
.
Edit the file and make and following changes:
- Line 20: meetup_api_key, replace 'key' with your API key.
- Line 14: uncomment
#mailer_delivery_address
, and add your e-mail address.
php composer.phar install
Be patient, this process takes some time, if you dont see any errors, then composer ran successfully.
Please read section Setting up Permissions under Configuration and Setup in The Book.
This repository contains a Vagrantfile. This means that is uses Vagrant to automatically create a virtual machine on your system. Unfortunately, Ansible does not work that well with Vagrant on Windows, so don't even try unless you know what you're doing. Installing a local webserver is a lot less painful
In the root of the project, enter the command:
vagrant up
After the machine is created, Ansible is used to "provision" it. That just means all the necessary software is installed. It also takes care of the proper config files for the webserver.
The webserver is configured to listen to the hostname sweetlakephp.loc, so the url should be http://sweetlakephp.loc. You will need to add this line in your local hosts file (/etc/hosts on Linux and OS X, %SystemRoot%\system32\drivers\etc\hosts on Windows).
192.168.30.48 sweetlakephp.loc
How the webserver should be configured depends on which webserver you use.
Basic examples for Apache2 and Nginx can be found in Symfony 2's cookbook: Configuring a web server.
At this time you should be able to browse to your locally running project (http://localhost/
or whatever you configured in step 7).
The loading will take some time, but if you will see a very basic page (without styles) that means composer could not run the last steps.
We have to add the assets to the web folder. That is done with one command.
php app/console assets:install web --symlink
php app/console assetic:dump
Revisit your browser and see if the website is fully loaded.
Congratulations!
Go ahead and make some changes!