Web service for creating study tasks for developers and evaluating solutions anonymously.
Currently in development. Things may change or break until a solid release has been announced.
- PHP 5.4 and later
- Symfony 2.6 and later
- Doctrine 2.4 and later
- Node.JS
- Bower
- GitHub application
$ curl -s https://getcomposer.org/installer | php
Because we are using SpBowerBundle
for managing assets you have to install required Node.js and Bower for it.
$ sudo apt-get install node
$ npm install -g bower
$ composer.phar create-project -s dev stfalcon-studio/codedill codedill
-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.php
If you got any warnings or recommendations, fix them before moving on.
- PHP needs to be a minimum version of PHP 5.4.*
- JSON needs to be enabled
- ctype needs to be enabled
- curl needs to be enabled
- Your PHP.ini needs to have the date.timezone setting
- Intl needs to be installed with ICU 4+
- APC 3.0.17+ (or another opcode cache needs to be installed)
$ 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 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:load
You can set test
environment for command if you add --env=test
to it.
Open https://github.com/settings/applications/new
Application name: Codedill
Homepage URL: http://codedill.localhost/app_dev.php
Authorization callback URL: http://codedill.localhost/app_dev.php/auth/check-github
Press the button "Register application".
Use the newly generated Client ID
and Client Secret
parameters for your application.
That's all. Enjoy "Codedill" and send feedback ^_^