yiiframework-ru

yiiframework.ru

Github星跟蹤圖

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.

Alternative installation (Vagrant)

Manual for Linux/Unix users

  1. Install VirtualBox

  2. Install Vagrant

  3. Create GitHub personal API token

  4. Prepare project:

    git clone https://github.com/samdark/yiiframework-ru.git
    cd yiiframework-ru/vagrant/config
    cp vagrant-local.example.yml vagrant-local.yml
    
  5. Place your GitHub personal API token to vagrant-local.yml

  6. Change directory to project root:

    cd yiiframework-ru
    
  7. Run command:

    vagrant up
    

That's all. You just need to wait for completion!
After that you can access project locally by URL: http://l.yiiframework.ru

Manual for Windows users

  1. Install VirtualBox

  2. Install Vagrant

  3. Reboot

  4. Create GitHub personal API token

  5. Prepare project:

    • download repo yiiframework-ru
    • unzip it
    • go into directory yiiframework-ru-master/vagrant/config
    • copy vagrant-local.example.yml to vagrant-local.yml
  6. Place your GitHub personal API token to vagrant-local.yml

  7. Open terminal (cmd.exe), change directory to project root and run command:

    vagrant up
    

    (You can read here how to change directories in command prompt)

That's all. You just need to wait for completion!
After that you can access project locally by URL: http://l.yiiframework.ru

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.

主要指標

概覽
名稱與所有者samdark/yiiframework-ru
主編程語言PHP
編程語言PHP (語言數: 5)
平台
許可證Other
所有者活动
創建於2014-06-24 10:16:53
推送於2023-07-01 05:33:52
最后一次提交2023-07-01 13:33:22
發布數0
用户参与
星數52
關注者數13
派生數22
提交數392
已啟用問題?
問題數105
打開的問題數9
拉請求數59
打開的拉請求數1
關閉的拉請求數7
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?