This project created by students from Khmelnytskyi Polytechnic College during their practice at Studio Stfalcon.com.
- PHP 5.4 and later
- Symfony 2.7 and later
- Doctrine 2.4 and later
- Facebook application
- Google application
- VKontakte application
- Using composer
$ composer require stfalcon-studio/rock_events
This command requires you to have Composer installed globally, as explained in the Composer documentation.
- Using Git
$ git clone https://github.com/stfalcon-studio/rock-events.git
- Make sure that your local system is properly configured for Symfony2. To do this, execute the following:
$ php app/check.php
If you got any warnings or recommendations, fix them before moving on.
- Setting up permissions for directories app/cache/ and app/logs
$ HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
$ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs
$ sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs
- Change DBAL settings, create DB, update it and load fixtures
Change DBAL setting if your need in app/config/config.yml
, app/config/config_dev.yml
or app/config/config_test.yml
. After that execute the following:
$ php app/console doctrine:database:create
$ php app/console doctrine:migrations:migrate
$ php app/console doctrine:fixtures:load
You can set test environment for command if you add --env=test to it.
- Create Facebook application (optional)
- Register as Developer
- Press Add a new App
- Choose Web platform
- Type the name of your application, e.g. Rock Events. Localhost
- Press Create New Facebook App ID
- Choose category Music and press Create App ID
- Set your site URL. If it is on localhost, then something like this
http://rock-events.localhost/app_dev.php/
and press Next - Use the newly generated
App ID
andApp Secret
parameters for your application, update parametersfacebook_app_id
andfacebook_app_secret
in parameters.yml file
- Create VKontakte application (optional)
- Go to developer page
- Press Create an Application
- Type the name of your application, e.g. Rock Events. Localhost
- Choose category Website
- Set your site URL and base domain. If it is on localhost, then URL be something like this
http://rock-events.localhost/app_dev.php/
and base domain like thisrock-events.localhost
- Press Create Site
- Go to settings and use the newly generated
App ID
andApp Secret
parameters for your application, update parametersvk_app_id
andvk_app_secret
in parameters.yml file
This software is published under the MIT License