Giter Site home page Giter Site logo

svatok13 / codedill Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stfalcon-studio/codedill

0.0 2.0 0.0 510 KB

Web service for creating study tasks for developers and evaluating solutions anonymously.

Home Page: https://github.com/stfalcon-studio/codedill

ApacheConf 1.95% PHP 95.70% Gherkin 0.41% CSS 1.32% JavaScript 0.62%

codedill's Introduction

Codedill

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.

Scrutinizer Quality Score Build Status Codecov Total Downloads Latest Stable Version License Dependency Status SensioLabsInsight HHVM Gitter

Requirements

  • PHP 5.4 and later
  • Symfony 2.6 and later
  • Doctrine 2.4 and later
  • Node.JS
  • Bower
  • GitHub application

Installation

Install Composer

$ curl -s https://getcomposer.org/installer | php

Install Node.js and Bower

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

Create project via Composer

$ composer.phar create-project -s dev stfalcon-studio/codedill codedill

-s dev means non-stable version, until we make first stable release.

Check your system configuration

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.

Requirements
  • 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)

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:

$ ./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.

Create new application on GitHub

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 ^_^

codedill's People

Contributors

bolotyuh avatar fre5h avatar fluxuator avatar ftrrtf avatar jekakm avatar

Watchers

James Cloos avatar Yuri Svatok avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.