Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samdark/yiiframework-ru
yiiframework.ru
https://github.com/samdark/yiiframework-ru
community hacktoberfest yii
Last synced: 25 days ago
JSON representation
yiiframework.ru
- Host: GitHub
- URL: https://github.com/samdark/yiiframework-ru
- Owner: samdark
- License: other
- Created: 2014-06-24T10:16:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-07-01T05:33:52.000Z (over 1 year ago)
- Last Synced: 2024-09-30T22:18:02.870Z (about 1 month ago)
- Topics: community, hacktoberfest, yii
- Language: PHP
- Homepage: http://yiiframework.ru/
- Size: 2.59 MB
- Stars: 52
- Watchers: 14
- Forks: 21
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
yiiframework.ru
===============Source code for new version of [yiiframework.ru](http://yiiframework.ru/).
[![Join the chat at https://gitter.im/samdark/yiiframework-ru](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/samdark/yiiframework-ru?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
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](http://getcomposer.org/), you may install it by following the instructions
at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).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](https://github.com/samdark/yiiframework-ru/tree/master/server/nginx).Alternative installation (Vagrant)
----------------------------------#### Manual for Linux/Unix users
1. Install [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
2. Install [Vagrant](https://www.vagrantup.com/downloads.html)
3. Create GitHub [personal API token](https://github.com/blog/1509-personal-api-tokens)
3. Prepare project:
```bash
git clone https://github.com/samdark/yiiframework-ru.git
cd yiiframework-ru/vagrant/config
cp vagrant-local.example.yml vagrant-local.yml
```
4. Place your GitHub personal API token to `vagrant-local.yml`
5. Change directory to project root:```bash
cd yiiframework-ru
```5. Run command:
```bash
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 users1. Install [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
2. Install [Vagrant](https://www.vagrantup.com/downloads.html)
3. Reboot
4. Create GitHub [personal API token](https://github.com/blog/1509-personal-api-tokens)
5. Prepare project:
* download repo [yiiframework-ru](https://github.com/samdark/yiiframework-ru/archive/master.zip)
* 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:
```bash
vagrant up
```
(You can read [here](http://www.wikihow.com/Change-Directories-in-Command-Prompt) 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.ruOptional 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](http://www.php-fig.org/psr/psr-2/).