createWriteStream async – Guide

When writing files to disk in node you have to be careful. Many times file writes require insertion of large chunks of data over a (relatively) long period of time. The key thing to avoid is opening the file multiple times which is resource intensive. It is far better to open the file once and … Read more

Express Server with Email Password Auth

Introduction The FIRST thing you do with any app is to create authentication for it, after all you will have users and they will need accounts! In this article I will show you the basic idea with a standalone one file express server. We will use several popular off the shelf libraries such as express … Read more

Simple Express Server in 2 Minutes

Creating a basic server in Express.js is very straightforward. Express.js is a minimal and flexible Node.js web application framework that provides a robust set of features to develop web and mobile applications. To create a basic server, follow these steps: Your server will start, and you should see the message “Server is running at http://localhost:3000” … Read more

Create a Basic Express JS Server

This server will print out a “hello world” to a local webpage on your PC. The steps are simple: Step 1: Install Node JS Go here https://nodejs.org/en/download/ and download the installer for your system (Max / Windows / Linux). Once installed verify by opening a cmd or terminal and typing “node -v && npm -v” … Read more