@@ -94,6 +94,43 @@ Your API is now available at `http://localhost:8337/`. Try to access an endpoint
9494 ...
9595 ]
9696
97+ ## Application structure
98+
99+ - ` api/ ` - API application tier
100+ - ` config/ ` - configuration for API tier
101+ - ` url-rules.php ` - custom URL rules
102+ - ` url-rules.rest.php ` - URL rules ** generated** from OpenAPI Description
103+ - ` components.php ` - application components
104+ - ` app.php ` - Yii application config (+ overrides for different environments ` app-*.php ` )
105+ - ` controllers/ ` - Controller classes ** generated** from OpenAPI Description
106+ - ` web/ ` - public web directory for API application
107+
108+ - ` backend/ ` - Backend application tier
109+ - ` config/ ` - configuration for Backend tier
110+ - ` components.php ` - application components
111+ - ` app.php ` - Yii application config (+ overrides for different environments ` app-*.php ` )
112+ - ` controllers/ ` - Controller classes
113+ - ` views/ ` - View files
114+ - ` web/ ` - public web directory for Backend application
115+
116+ - ` common/ ` - common code files
117+ - ` models/ ` - model classes ** generated** from OpenAPI Description
118+ - ` migrations/ ` - database migrations ** generated** from OpenAPI Description
119+
120+ - ` config/ ` - Common configuration for all application tiers
121+ - ` components.php ` - Yii application components (+ overrides for different environments ` components-*.php ` )
122+ - ` env.php ` - Environment setup (YII_DEBUG, YII_ENV, path aliases, composer autoloader)
123+ - ` events.php ` - Class wide event listeners
124+ - ` gii-generators.php ` - configuration for the Gii code generator (allows to set default values for the ApiGenerator)
125+ - ` params.php ` - Configuration for ` Yii::$app->params `
126+
127+ - ` console/ ` - Console application tier
128+ - ` config/ ` - configuration for Console tier
129+ - ` components.php ` - application components
130+ - ` app.php ` - Yii application config (+ overrides for different environments ` app-*.php ` )
131+
132+ - ` logs/ ` - log files
133+ - ` runtime/ ` - temporary runtime files
97134
98135# Support
99136
0 commit comments