Error pages (404, 400, 500) · We need to show error pages to users, ie: 404, 500, 400 Create the views views/layouts/main.hbs <html lang="en"><head> ...
Routes · In this part 2, we will define routes while incorporating Handlebars. Installing Handlebars Install express-handlebars with the command npm...
In Part 1, error handling was created. Let's make it easier to throw errors. Instead of let error = new Error('This is a major...
We will be using Docker, Node 18, MySQL 8, and Redis. Following Setting Up Node App using Docker post express, nodemon, dotenv packages should be...
Create a docker setup to build a Node Express app with MySQL and Redis Create a directory and go switch to it mkdir nodeapp cd nodeapp Create...
Trying to query the MySQL database is slow (millions of records in table) Example query: SELECT * FROM my_table WHERE code='X87L9D82NB'; Just add an...