An open API service indexing awesome lists of open source software.

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.

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
```