Web-service for announcements of lost and found things.
Currently in development. Things may change or break until a solid release has been announced.
This service started as a training project for students from Khmelnytskyi Polytechnic College during their practice at Studio Stfalcon.com. You can also check a presentation and video about that practice.
- PHP 5.6 and later
- Symfony 2.7 and later
- Doctrine 2.5 and later
- Facebook application
$ curl -s https://getcomposer.org/installer | php$ composer.phar create-project -s dev stfalcon-studio/lost-and-found lost-and-found-s dev means non-stable version, until we make first stable release.
Before you begin, make sure that your local system is properly configured for Symfony2. To do this, execute the following:
$ php app/check.phpIf you got any warnings or recommendations, fix them before moving on.
$ 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/logsChange 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:
$ ./console doctrine:database:create
$ ./console doctrine:migrations:migrate
$ ./console doctrine:fixtures:loadYou can set test environment for command if you add --env=test to it.
- Register as Facebook Developer
- Then open https://developers.facebook.com/quickstarts/?platform=web
- Type the name of your application, e.g. Lost and Found. Localhost
- Press "Create New Facebook App ID"
- Choose category "Apps for Pages"
- Press "Create App ID"
- Set your site URL. If it is on localhost, then something like this
http://lost-and-found.localhost/app_dev.php/and press Next - Use the newly generated
App IDandApp Secretparameters for your application, update parametersfacebook_app_idandfacebook_app_secretin parameters.yml file
That's all. Enjoy "Lost and Found" and send feedback ^_^
