Skip to content

damasco/yiiframework-ru

 
 

Repository files navigation

yiiframework.ru

Source code for new version of yiiframework.ru.

Join the chat at https://gitter.im/samdark/yiiframework-ru

Overview

Project includes three tiers: front end, back end, and console, each of which is a separate Yii application.

Installation

1. Install framework and dependencies

If you do not have Composer, you may install it by following the instructions at getcomposer.org.

You can then install this application template using the following command:

composer global require "fxp/composer-asset-plugin"
composer install

2. Initialize configs

Run init in the root directory. Choose development environment.

3. Database

Create a database. Copy /config/system/db.php to /config/db.php. Specify your database connection there.

Then apply migrations by running:

yii migrate

4. Setup webserver

Point your werbserver root to web directory. There's nginx config you can check.

Optional installation steps

1. Configure github application

Create new GitHub OAuth application: https://github.com/settings/applications/new - authorization callback URL must lead to local site domain. Copy /config/system/authclients.php to /config/authclients.php. Specify your application settings there.

Code style

Code style used in this project is PSR-2.

Releases

No releases published

Packages

No packages published

Languages

  • PHP 81.5%
  • CSS 14.2%
  • JavaScript 3.5%
  • Other 0.8%