You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _site/concepts/index.pug
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -175,7 +175,7 @@ block content
175
175
#models.tabs-panel
176
176
h4 Models
177
177
p A model module fulfills the #[b M] in the #[a(href="https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller") Model View Controller] (#[b M]VC) pattern and represents a persistent entity that is mapped onto an underlying database. In #{ apogeu } a model is a module with a plural name convention and lives in the #[code app/models] directory.
178
-
p Models don't need to be required, just use #[code UserModel] wherever you want.
178
+
b Models don't need to be required, just use #[code UserModel] wherever you want.
179
179
p A model can be created with the #[code apogeu model model_name] command:
180
180
pre
181
181
code.bash $ apogeu create model user
@@ -192,7 +192,7 @@ block content
192
192
#services.tabs-panel
193
193
h4 Services
194
194
p A service contains business logic that can be reused across a #{ apogeu } application. In #{ apogeu }, a service is a module with a plural name that ends in the "Service" convention and lives in the #[code app/services] directory.
195
-
p Services don't need to be required, just use #[code UsersService] wherever you want.
195
+
b Services don't need to be required, just use #[code UsersService] wherever you want.
196
196
p A service can be created with the #[code apogeu create service model_name] command:
197
197
pre
198
198
code.bash $ apogeu create service user
@@ -206,7 +206,7 @@ block content
206
206
#controllers.tabs-panel
207
207
h4 Controllers
208
208
p A controller fulfills the #[b C] in the #[a(href="https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller") Model View Controller] (MV#[b C]) pattern and is responsible for handling web requests. In #{ apogeu }, a service is a module with a plural name that ends in the "Controller" convention and lives in the #[code app/controllers] directory.
209
-
p Controllers don't need to be required, just use #[code UsersController] wherever you want.
209
+
b Controllers don't need to be required, just use #[code UsersController] wherever you want.
210
210
p A controller can be created with the #[code apogeu create controller model_name] command:
211
211
pre
212
212
code.bash $ apogeu create controller user
@@ -220,7 +220,7 @@ block content
220
220
#middlewares.tabs-panel
221
221
h4 Middlewares
222
222
p #[a(href="http://expressjs.com/en/guide/writing-middleware.html") Middleware] functions are functions that have access to the request object (req), the response object (res), and the next function in the application’s request-response cycle. In #{ apogeu }, a service is a module with a singular name that ends in the "Middleware" convention and lives in the #[code app/middlewares] directory.
223
-
p Middlewares don't need to be required, just use #[code LogMiddleware] wherever you want.
223
+
b Middlewares don't need to be required, just use #[code LogMiddleware] wherever you want.
224
224
p A middleware can be created with the #[code apogeu create middleware log] command:
0 commit comments