Blog

Archive for the Node.js Category


Socket.io Example that does a Full Broadcast of a Counter that Increments by One
Posted on July 16, 2015 in Node.js by Matt Jennings

server.js Server File

// require express and path
var express = require(“express”);
var path = require(“path”);

// Create express app
var app = express();

// Static
Read more…


Simple Socket.io Example with Comments to Explain Event Emitting and Listening
Posted on July 15, 2015 in Node.js by Matt Jennings

server.js File in Root Directory of Node.js App

// require express and path
var express = require(“express”);
var path = require(“path”);

// Create the
Read more…


A Description of package.json File using Node.js, Including How to Install Packages Using It
Posted on July 15, 2015 in Node.js by Matt Jennings

Rules for Creating and Installed a package.json File

The package.json file will live at specific directory I’m working in for a
Read more…


Example of Setting Up a Simple Node.js Web Page
Posted on July 10, 2015 in Node.js by Matt Jennings

Example Node.js Code in an app.js File

// get the http module
var http = require(“http”);

// fs module allows us to read
Read more…


Node.js, npm, and Homebrew Mac Terminal Commands
Posted on July 10, 2015 in Command Line, Mac, Node.js by Matt Jennings

After Installed Homebrew on a Mac, How to Install Node.js via Terminal

brew install node

View Node.js Version

node -v

View npm
Read more…

To Top ↑