Source code for new version of yiiframework.ru.
Project includes three tiers: front end, back end, and console, each of which is a separate Yii application.
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
Run init
in the root directory. Choose development environment.
Create a database. Copy /config/system/db.php
to /config/db.php
. Specify your database connection there.
Then apply migrations by running:
yii migrate
Point your werbserver root to web
directory.
There's nginx config you can check.
-
Install VirtualBox
-
Install Vagrant
-
Create GitHub personal API token
-
Prepare project:
git clone https://github.com/samdark/yiiframework-ru.git cd yiiframework-ru/vagrant/config cp vagrant-local.example.yml vagrant-local.yml
-
Place your GitHub personal API token to
vagrant-local.yml
-
Change directory to project root:
cd yiiframework-ru
-
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
-
Install VirtualBox
-
Install Vagrant
-
Reboot
-
Create GitHub personal API token
-
Prepare project:
- download repo yiiframework-ru
- unzip it
- go into directory
yiiframework-ru-master/vagrant/config
- copy
vagrant-local.example.yml
tovagrant-local.yml
-
Place your GitHub personal API token to
vagrant-local.yml
-
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
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 used in this project is PSR-2.