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
The routes are plugged in on index.js, but they allude to an MVC design with a common ./routes directory. For this example should they be require(./feature/router.js ?
// Load the routes
app.use(require('./routes/site'));
app.use('/api/jobs', require('./routes/customers'));
app.use('/api/users', require('./routes/users'));
// FINALLY, use any error handlers
app.use(require('./routes/errors/not-found'));
Also I having trouble understanding the ./site directory. if user.pug is in the in the user feature should home.pug be in a home directory ?
or is ./site more of a place for static html. What if app is doing a lot of backend operations on the home page
Thank you so much for teaching so many principles in a sea of tutorials that don't address their design pattern choices, leaving tons of new developers unsure what is best practice , what is essential, and what is simply preference or monkey-see monkey-do.
The text was updated successfully, but these errors were encountered:
The routes are plugged in on index.js, but they allude to an MVC design with a common ./routes directory. For this example should they be require(./feature/router.js ?
Also I having trouble understanding the ./site directory. if user.pug is in the in the user feature should home.pug be in a home directory ?
or is ./site more of a place for static html. What if app is doing a lot of backend operations on the home page
Thank you so much for teaching so many principles in a sea of tutorials that don't address their design pattern choices, leaving tons of new developers unsure what is best practice , what is essential, and what is simply preference or monkey-see monkey-do.
The text was updated successfully, but these errors were encountered: