The template includes three tiers: back end, and console, with webpack support, for use scss, react, and more.
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:
$ npm run dev
For bundle your app to production mode run:
$ npm run prod