https://github.com/taguz91/yii2-backoffice-template
Backoffice template, for yii2 application. Includes webpack support for scass and react or some else.
https://github.com/taguz91/yii2-backoffice-template
backoffice template webpack yii2
Last synced: about 2 months ago
JSON representation
Backoffice template, for yii2 application. Includes webpack support for scass and react or some else.
- Host: GitHub
- URL: https://github.com/taguz91/yii2-backoffice-template
- Owner: taguz91
- License: bsd-3-clause
- Created: 2021-04-28T15:09:32.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-28T21:24:57.000Z (about 4 years ago)
- Last Synced: 2025-01-16T09:44:06.234Z (4 months ago)
- Topics: backoffice, template, webpack, yii2
- Language: PHP
- Homepage:
- Size: 137 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Yii 2 Backoffice Template
The template includes three tiers: back end, and console, with webpack support, for use scss, react, and more.
DIRECTORY STRUCTURE
-------------------```
common
cache/ contains all cache functionality
components/ contains your custom components
config/ contains shared configurations
enums/ contains state apps
grid/ contains GridView and LinkPager with bootstrap4 support
models/ contains model classes used in both backend and frontend
providers/ contains all providers
repositories/ contains all querys for each model
tests/ contains tests for common classes
validators/ contains all custom validations
helpers/ contains helpers for the app
widgets/ contains widgets for the app
yii/ contains yii base clases with custom implementations
console
config/ contains console configurations
controllers/ contains console controllers (commands)
models/ contains console-specific model classes
runtime/ contains files generated during runtime
backend
assets/ contains application assets such as JavaScript and CSS
config/ contains backend configurations
controllers/ contains Web controller classes
models/ contains backend-specific model classes
routes/ contains rules for the routes, and a custom helper for manage the urls
runtime/ contains files generated during runtime
tests/ contains tests for backend application
views/ contains view files for the Web application
web/ contains the entry script and Web resources
webpack/ contains js and scss files
vendor/ contains php dependent 3rd-party packages
node_modules/ contains webpack dependent 3rd-party packages
environments/ contains environment-based overrides
```To use webpack in dev mode you can run:
```bash
$ npm run dev
```For bundle your app to production mode run:
```bash
$ npm run prod
```