Dev Logbook

Dev Logbook

Follow
homeServersLaravelnewsletter

Create a Basic Framework with Express (Part 3)

Aug 27, 20232 min read

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> ...

Create a Basic Framework with Express (Part 3)

Create a Basic Framework with Express (Part 2)

May 1, 20232 min read

Routes · In this part 2, we will define routes while incorporating Handlebars. Installing Handlebars Install express-handlebars with the command npm...

Create a Basic Framework with Express (Part 2)

Create a Basic Framework with Express (Part 1.1)

Apr 2, 20231 min read

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...

Create a Basic Framework with Express (Part 1.1)

Create a Basic Framework with Express (Part 1)

Mar 20, 20233 min read

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 Basic Framework with Express (Part 1)

Setting Up Node App using Docker

Jan 16, 20233 min read

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...

Setting Up Node App using Docker

Querying for Data in MySQL is Slow

Dec 17, 20221 min read

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...

Querying for Data in MySQL is Slow