Skip to content

Commit eb8f7b6

Browse files
committed
and gii queue generator and update readme
1 parent 7558eae commit eb8f7b6

File tree

3 files changed

+46
-16
lines changed

3 files changed

+46
-16
lines changed

README.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,33 @@
33
Yii2-app is Fast and Ready-to-production advanced project template.
44

55
Default, the template includes three tiers: `frontend`, `backend`, and `console`, each of which is a separate Yii application.
6+
67
> **NOTE:** Template is in initial development. Anything may change at any time.
78
9+
810
## Features
9-
* Admin template: [yiister/yii2-gentelella](https://github.com/yiister/yii2-gentelella), [Demo](https://colorlib.com/polygon/gentelella/)
10-
* Yii2 User: [dektrium/yii2-user](https://github.com/dektrium/yii2-user) (login `adminus`, password `adminus`)
11+
* Admin template is beautiful and simple bootstrap, compatible with yii2 assets: [yiister/yii2-gentelella](https://github.com/yiister/yii2-gentelella), [Demo](https://colorlib.com/polygon/gentelella/)
12+
* Yii2 User is strong and proved user-module with many features: [dektrium/yii2-user](https://github.com/dektrium/yii2-user) (login `adminus`, password `adminus`)
1113
* Frontend and Backend User Controllers are filtered (by `dektrium/yii2-user`)
12-
* Redis cache (you may change to DB-cache, but dont forget apply migration)
13-
* Yii2 queue (DB table `queue`) with backend (`/queuemanager/default/index`) using [ignatenkovnikita/yii2-queuemanager](https://github.com/ignatenkovnikita/yii2-queuemanager)
14-
* Log DB Target with backend (`/log/index`)
14+
* Redis cache is really fast (you may change to DB-cache, but don't forget apply migration `yii migrate --migrationPath=@yii/log/migrations/`)
15+
* Yii2 queue (DB table `queue`), but you can use *Redis-queue* or other
16+
* Queue Manager with backend (`/queuemanager/default/index`) using [ignatenkovnikita/yii2-queuemanager](https://github.com/ignatenkovnikita/yii2-queuemanager)
17+
* Log DB Target with backend (`/log/index`) - simply view log messages
18+
* .htaccess - config for **pretty urls** (rewrite index.php), *may be later add nginx config*
1519
* **UrlManagerFrontend** for backend app (all url rules in file `frontend/config/urls.php`, hostInfo in `common/config/params.php`)
1620
* i18n translations in `common/messages` with config
1721
* ContactForm in frontend app is improved: [himiklab/yii2-recaptcha-widget](https://github.com/himiklab/yii2-recaptcha-widget),
1822
all email are saved to DB (`common/models/EmailForm` Model), optionally send message to Viber messenger via bot
19-
(install requirements and config, uncomment code in Model)
20-
* **postcss** config
23+
(install requirements [Bogdaan/viber-bot-php](https://github.com/Bogdaan/viber-bot-php) and config, uncomment code in Model)
24+
* **postcss** config (`frontend/web/src/pcss//*.css`)
25+
* Gii generator: added **yii2-queue**, may be later - [schmunk42/yii2-giiant](https://github.com/schmunk42/yii2-giiant) - really steroid, but in development with bugs
2126

2227

2328
## Available modules
2429
These modules can be easy installed to Yii2-App using Composer:
2530

2631
* Yii2 Super Blog Module (semantic, seo): [akiraz2/yii2-blog](https://github.com/akiraz2/yii2-blog)
27-
* Yii2 many web-statictic counters *(yandex, google, own db-counter)*: [akiraz2/yii2-stat](https://github.com/akiraz2/yii2-stat)
32+
* Yii2 many web-statictic counters (all-in-one) *(yandex, google, own db-counter)*: [akiraz2/yii2-stat](https://github.com/akiraz2/yii2-stat)
2833
* yii2 opengraph component: [dragonjet/yii2-opengraph](https://github.com/dragonjet/yii2-opengraph)
2934
* yii2 settings (db+cache): [yii2mod/yii2-settings](https://github.com/yii2mod/yii2-settings)
3035
* etc...
@@ -64,15 +69,12 @@ php yii message/extract common/messages/config.php
6469

6570
**POSTCSS**
6671

67-
```
68-
webstorm file-watcher
69-
70-
scope file[mites-site]:frontend/web/src/pcss//*.css
71-
72-
program C:\Users\user4957\AppData\Roaming\npm\postcss.cmd
72+
Add WebStorm file-watcher, postcss.config.js is ready for use
73+
> **NOTE:** Dont forget install nodejs :) and run command `npm install`
74+
1. scope file[mites-site]:frontend/web/src/pcss//*.css
75+
2. program C:\Users\user4957\AppData\Roaming\npm\postcss.cmd
76+
3. arguments $ContentRoot$\frontend\web\css\style.css --config $ContentRoot$\post.config.js
7377

74-
arguments $ContentRoot$\frontend\web\css\style.css --config $ContentRoot$\post.config.js
75-
```
7678

7779
## Support
7880

environments/dev/backend/config/main-local.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
$config['bootstrap'][] = 'gii';
2020
$config['modules']['gii'] = [
2121
'class' => 'yii\gii\Module',
22+
'generators' => [
23+
'job' => [
24+
'class' => \yii\queue\gii\Generator::class,
25+
],
26+
],
2227
];
2328
}
2429

package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "Yii2 app",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "postcss.config.js",
6+
"dependencies": {},
7+
"devDependencies": {
8+
"autoprefixer": "^8.2.0",
9+
"css-mqpacker": "^6.0.2",
10+
"postcss-cssnext": "^3.1.0",
11+
"postcss-focus": "^3.0.0",
12+
"postcss-import": "^11.1.0",
13+
"postcss-nested": "^3.0.0",
14+
"postcss-nested-ancestors": "^2.0.0",
15+
"postcss-scss": "^1.0.4",
16+
"postcss-size": "^2.0.0"
17+
},
18+
"scripts": {
19+
"test": "echo \"Error: no test specified\" && exit 1"
20+
},
21+
"author": "",
22+
"license": "ISC"
23+
}

0 commit comments

Comments
 (0)