Skip to content

Commit d3161ca

Browse files
committed
improved concepts
1 parent e9bf2ee commit d3161ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_site/concepts/index.pug

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ block content
175175
#models.tabs-panel
176176
h4 Models
177177
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.
179179
p A model can be created with the #[code apogeu model model_name] command:
180180
pre
181181
code.bash $ apogeu create model user
@@ -192,7 +192,7 @@ block content
192192
#services.tabs-panel
193193
h4 Services
194194
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.
196196
p A service can be created with the #[code apogeu create service model_name] command:
197197
pre
198198
code.bash $ apogeu create service user
@@ -206,7 +206,7 @@ block content
206206
#controllers.tabs-panel
207207
h4 Controllers
208208
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.
210210
p A controller can be created with the #[code apogeu create controller model_name] command:
211211
pre
212212
code.bash $ apogeu create controller user
@@ -220,7 +220,7 @@ block content
220220
#middlewares.tabs-panel
221221
h4 Middlewares
222222
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.
224224
p A middleware can be created with the #[code apogeu create middleware log] command:
225225
pre
226226
code.bash $ apogeu create middleware log

0 commit comments

Comments
 (0)