Code Monkey home page Code Monkey logo

yiiframework-ru's Introduction

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.

yiiframework-ru's People

Contributors

aleksandrzhiliaev avatar carsak avatar damasco avatar delocker avatar dependabot[bot] avatar githubjeka avatar gitter-badger avatar gud3 avatar kirc0de avatar lemanko avatar lvb3q avatar ostashevdv avatar prodex avatar rmrevin avatar rugabarbo avatar samdark avatar shkolin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yiiframework-ru's Issues

Email сообщения

  • Регистрация нового пользователя
  • Запрос на восстановление забытого пароля
  • Повторная отправка письма для подтверждения email

Раздел QA

Есть готовый модуль QA - https://github.com/artkost/yii2-qa

Вроде нормальный и многое реализовано. В нём уже найдены баги и можно помочь их исправить, но вот дилема - как этот модуль использовать тут?

Вдруг понадобится что-то переделать, нужно ждать пока там смержат.
Как поступить? Делать форк и юзать его или сразу копировать в /app/modules/ и вести всю разработку отдельно от первоначального?

UPD:

  • CRUD
  • comments for Q&A
  • метки для вопросов (tags)
  • реализация счётчиков (голоса, ответы, просмотры)
  • дизайн

Авторизация через соцсети

  • Кнопки в форме логина должны работать как авторизация через соцсети
  • Возможность в профиле привязать соцсеть

Code style

Может создать readme по Code style проекта для вновь прибывших?

Раздел: Вопросы и ответы (new)

Раздел: Вопросы и ответы (new)

  • Основной раздел
    • Блок с выводом тегов в right-sidebare
    • Возможность отображать свои вопросы во вкладке
    • Возможность отображать решенные вопросы во вкладке
    • Возможность отображать вопросы без ответа во вкладке
    • Возможность отображать избранные вопросы во вкладке
    • Возможность сортировки
      • по дате
      • по просмотрам
      • по подписчикам
    • Представление вопроса в основном разделе
      • Заголовок вопроса
      • Имя автора вопроса
      • Дата добавления вопроса
      • Краткое описание вопроса (кол-во символов < 300)
      • Информационные пункты
        • Кол-во просмотров
        • Кол-во ответов
        • Кол-во отслеживающих вопрос
  • Просмотр вопроса
    • Блок с выводом похожих вопросов в right-sidebare
    • Представление вопроса при просмотре
      • Заголовок вопроса
      • Имя автора вопроса
      • Изображения пользователя (gravatar)
      • Кнопка редактирования вопроса
      • Дата добавления вопроса
      • Краткое описание вопроса (кол-во символов < 300)
      • Информационные пункты
        • Кол-во просмотров
        • Кол-во ответов
        • Кол-во отслеживающих вопрос
      • Возможность комментировать вопрос
      • Возможность писать ответ на вопрос
      • Возможность комментировать ответ на вопрос
    • Представление комментария
      • Имя автора комментария
      • Дата добавления комментария
      • Текст комментария
      • Редактирование комментария
    • Представление ответа на вопрос
      • Имя автора ответа
      • Изображения пользователя (gravatar)
      • Дата добавления ответа
      • Текст ответа
      • Редактирование ответа
  • Автор вопроса может выбирать варианты решения только ответы.
  • Максимальное кол-во тегов к вопросу 5
  • Каждый пользователь может добавлять вопрос к себе в избранное.
  • Удаления вопроса, ответа, комментария (невозможно), авторам доступно только редактирование.

Если есть предложения дополнительно жду!

Улучшение перехода между страницами с новостями.

На главной при переходе на предыдущие страницы постов, перезагружается страница с прыжком в самый вверх страницы.

Нужно добавить якорь к началу блока постов и добавить его к пагинации. Было бы здорово добавить плавный скролл к якорю.

New forum

  • markdown
  • referencing github issues
  • referencing API
  • suggest topics when creating new ones
  • post counter
  • integrate with yiiframework.com API
  • sections
  • QA?

Сайты на Yii

Галерея сайтов на Yii.

  • Название.
  • Описание.
  • Скриншоты.
  • Ссылка на студию / сайт разработчика.

Ошибка восстановления пароля

Пробую восстановить пароль, и получаю "Возникла внутренняя ошибка сервера."
Не уверен, что мой емейл есть в базе, так что, возможно, ошибка в этом.

Работа

Yii Jobs TODO

Roles

There are three roles in the system:

  • Employer - the one who's posting a job offer.
  • Employee - the one who's seeking for the job.
  • Admin - the one who's able to manage everything.

Any user should be able to fill his profile

The following fields are available:

  • Name (required).
  • Email (required).
  • Website.
  • Company name.
  • Skype.
  • Jabber.
  • ICQ.

Employer should be able to add a job

The following fields are to be filled:

  • Title.
  • Type (fulltime, contract, freelance).
  • Text (markdown freeform text).
  • Tags (for example, PHP, Yii, API).
  • Salary / price range.
  • Expiration date (can't be more than 2 months).

Employer should be able to prolong the offer

At the time offer is about to expire employer should receive an email and be able to
prolong it for 2 months max.

Employer should be able to close the offer

That's especially useful when employee is found and employer doesn't want to receive more offers.
When closing a job there should be a page asking for a reason. Reasons are:

  • Employee found.
  • Project cancelled.

User should be able to filter jobs by any fields available

Search is very important for such a project. Implementation should be made as an adapter,
i.e. default is just SQL DBMS but should be easily replaceable with Sphinx or SOLR.

Документация

Показать старую доку по старым ссылкам (или редиректить с них), новую по новым.

NotificationFlash

Для удобной работы с flash сообщениями предлагаю использовать модуль
https://github.com/loveorigami/yii2-notification-wrapper

Принцип работы такой же, как и тут

<?= \lavrentiev\widgets\toastr\NotificationFlash::widget([

т.к. я его использую в качестве одного из виджетов

особенностью является вывод флеш сообщений после ajax запросов

Например - отобразить сообщение тут

public function actionFavorite($id)

( добавлено или удалено из избранного.)

  • появляется возможность поменять библиотеку для флеш сообщений, не привязываясь к js
    (например, вместо Toastr установить Noty)

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.