Our website at sweetlakephp.nl!
Want to get involved with this project? See our issues (bug/feature) page.
- A local running webserver like WAMP, XAMPP
- A Meetup account (you'll need an API key)
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 [email protected]:<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 two files:
parameters_dev.yml
parameters_prod.yml
Simply copy the file parameters.yml.dist
to parameters_dev.yml
and parameters_prod.yml
.
Edit both files and make and following changes:
- Line 20: meetup_api_key, replace 'key' with your API key.
Extra change for file parameters_dev.yml:
- Line 14: uncomment
#mailer_delivery_address
, and add your e-mail address.
The file parameters_prod.yml
is only required if you use app.php
(we encourage developers to use app_dev.php
only).
Please read section Setting up Permissions under Configuration and Setup in The Book.
php composer.phar install
Be patient, this process takes some time, if you dont see any errors, then composer ran successfully.
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 (https://localhost/
or whatever you configured in step 7).
The loading will take some time, but if you will see a very basic page that mean 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!