Code Monkey home page Code Monkey logo

yiipowered's Introduction

YiiPowered

Showcase of Yii powered websites and projects.

DIRECTORY STRUCTURE

  assets/             contains assets definition
  commands/           contains console commands (controllers)
  config/             contains application configurations
  controllers/        contains Web controller classes
  mail/               contains view files for e-mails
  models/             contains model classes
  runtime/            contains files generated during runtime
  vendor/             contains dependent 3rd-party packages
  views/              contains view files for the Web application
  web/                contains the entry script and Web resources

REQUIREMENTS

The minimum requirement by this project template that your Web server supports PHP 7.0.

INSTALLATION (Locally)

1. 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 install

2. Configs

There are more .php-orig sample configs in config directory. Copy these to .php without -orig and adjust to your needs.

3. Database

Create a database. By this moment you should have config/db.php. Specify your database connection there.

Then apply migrations by running:

yii migrate

4. Permissions

Permissions tree should be already initialized at step 3, so you can use user/assign to assign roles to users:

yii user/assign alex admin

Will assign admin role to user with username=alex.

5. You need LESS compiler in order to compile styles. In order to install it:

  • Install nodeJS
  • npm install -g less

6. Cron

*/10 * * * * php yii queue/run > /dev/null 2>&1
0 4 * * * php yii image/fetch > /dev/null 2>&1
0 5 * * * php yii check/all > /dev/null 2>&1

INSTALLATION (Docker)

  1. docker-compose up.
  2. Add yiipowered.test to your hosts.
  3. There are .php-orig sample configs in config directory. Copy these to .php without -orig and adjust to your needs.
  4. docker exec -it yiipowered bash.
  5. composer install && php yii migrate.
  6. Use user/assign to assign roles to users.

yiipowered's People

Contributors

alexantr avatar damasco avatar dependabot[bot] avatar devypt avatar dungphanxuan avatar githubjeka avatar kirc0de avatar lav45 avatar lex111 avatar machour avatar nadar avatar prodex avatar robotathome avatar samdark avatar silverfire 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  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

yiipowered's Issues

Favorites

Allow people to add projects to favorites.

Twitter:card meta data on project page including picture

If we add twitter meta tags on the project page, and we also include the picture tag, we can have more impacting previews when content get posted automatically on Twitter after submitting the project.

Example:

<meta name="twitter:image" content="https://absolute/path/to/preview.png" />
<meta name="twitter:site" content="@YiiPowered" />
<meta name="twitter:title" content="Project title" />
<meta name="twitter:url" content="https://project/link" />

Rating

  • Allow people to rate projects. Should be +1 or -1.
  • Add Top 100 page.

Automate website screenshots

The idea is to create a bot that would visit websites and take screenshots automatically.


@samdark вот думаю написать расширение для создания скриншотов для проектов, что думаете? Работать будет через API стороннего сервиса. Как считаете, пригодится?

Image management

  • Ability to delete image
  • Ability to re-crop image
  • Ability to select image as primary

REST API

It is required for new website.

View screenshots in a gallery and navigate them

I have just added this project:
https://yiipowered.com/en/projects/570/allmypicz-best-place-for-your-personal-pictures

And posted a couple of screenshots.

What I see that if I open the first one, I cannot navigate easily to the rest of the images, I have to close it and open the others manually.

It would improve the user experience of people checking the projects.

I would recommend something like:
https://github.com/blueimp/Gallery

It is used on the project site itself, you can check here how it works:
http://allmypicz.com/a/24/startupgrind-barcelona-angel-garcia-lanta-digital-ventures

It's both easy to use, and it is even responsive.

If you would like me to add it, I could try to do it and then make a pull request.

Otherwise also something with a easier setup such as Fancybox or so I guess could also work.

Can not log in with github

Received an error:

Unable to save user: {"notify_about_comment_on_email":["Notify about new comments by e-mail cannot be blank."]}

18 03 03-16 48 09

UX: upload screen issues

On the image upload page, I keep hitting NEXT instead of UPLOAD. I think that is a UX problem.

It is. Should be somehow fixed.

On that same screen, when I choose an image, and it gets loaded onto the preview, it overlaps the text you have on the right side of the page.

Проверка доступности

Может написать валидатор, который будет проверять доступность того или иного проекта?

The minimum requirement >= PHP 7, it's not >= PHP 5.4

I tried to build this project with composer and I got these errors.

Problem 1
- Installation request for claviska/simpleimage 3.3.1 -> satisfiable by claviska/simpleimage[3.3.1].
- claviska/simpleimage 3.3.1 requires php >=5.6.0 -> your PHP version (5.5.9) does not satisfy that requirement.

After I had installed php 5.6, the project built but on start this error occured

image

I checked that php construction
(clone $newProvider->query)->limit(null) is supported from php7

Image cropping JS doesn't work

Seems with recent chrome it always returns

ImageUploadForm.imageCropData
{"x":null,"y":null,"width":null,"height":null,"rotate":null,"scaleX":null,"scaleY":null}

Skipping cropping when processing images for now :(

Comments

Allow people to comment on each other projects.

Ability to edit user profile

User should be able to edit his profile. Admin should be able to edit any user profile.

  • Avatar image.
  • Display name.

Professional design

Current design is a standard bootstrap template plus some effort by myself. It's not really good so if you can contribute professionally on this matter, please comment.

Выравнивание элементов по сетке

Заголовки и ссылка "Показать ещё" смещены влево, что довольно заметно и несколько "режет" глаз. Хотел предложить исправление, но предварительно перед этим посмотреть историю коммитов, и увидел что так было сделано намерено, но для чего, ведь так быть не должно?

1488663165140

Sql error. 'password_reset_token' has no default value on signup.

Migration sets empty value to user's 'password_reset_token' cell in db.
It causes a Database Exception on signup:

SQLSTATE[HY000]: General error: 1364 Field 'password_reset_token' doesn't have a default value

Fix for migration:
'password_reset_token' => $this->string();

Screenshot size

Please add image dimension for screenshots in the description of the upload screen.

Удаление профиля пользователя

Доброго времени суток!

Есть ли сейчас возможность удаления профиля пользователя? Если такой возможности нет, то может стоит добавить?

Add "Yii 3.0" to filters dropdown

I realize that v3 isn't finished yet, but apparently there are projects out there using it already. So it kind of would make sense adding Yii 3.0 to the filters dropdown. As it is now tags are used to overcome this limitation, which seems wrong:

image
https://yiipowered.com/en/projects/539/app

(It might also make sense to add a banner to the projects' page saying that v3 isn't finished yet, and that the site is built with a preview version.)

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.