Articles
Count = 19
Express EJS Views, Layouts, and Partials
Created: 2/14/2026
Views in Express EJS are a lot like views in MVC and pages in Razor Pages. This article describes the express-ejs-layouts implementation.
Express Error Handling
Created: 2/14/2026
Proper error handling prevents the application from crashing. This article describes implementing not found and error handling middleware.
Express Routers and Controllers
Created: 2/14/2026
Routers handle the request endpoints. Controllers handle the response. This article describes how routers and controllers implement the separation of concerns principle.
Express Environment Variables
Created: 2/14/2026
Environment variables are not just secrets. Using the NODE_ENV variable, you can set different runtime configurations like "development" and "production".
MySQL and Services
Created: 2/14/2026
This article describes MySQL installation and connection pool implementation to integrate with Express. I use services for the data layer.
PostgreSQL and Services
Created: 2/24/2026
This article describes PostgreSQL installation and connection pool implementation to integrate with Express. I use services for the data layer.
EmailSender With Nodemailer
Created: 2/14/2026
This article describes how to implement an EmailSender utility with the nodemailer library configured to use an existing SMTP server.
EJS Posting Form Data
Created: 2/16/2026
This article describes posting form data from the client to the server. The data is sent to the server with the default Content-Type of application/x-www-form-urlencoded.