Getting Started with Mongoose and Node.js – A Sample Comments System

In this post, we’re going to be creating a sample comments system using Node, Express and Mongoose. Mongoose provides an object oriented interface for using MongoDB in Node. Everything in Mongoose starts with a Schema. Each schema maps to a Continue reading Getting Started with Mongoose and Node.js – A Sample Comments System

Emailing in Node.js with Nodemailer

Emailing in Node.js is easy to do with the Nodemailer module. Nodemailer supports plain text content, HTML content, attachments, different transport methods, etc. The official documentation can be found on github. Getting Started Lets start off by creating our directory. Continue reading Emailing in Node.js with Nodemailer

Form Validation in Node.js with Express-Validator

I spent a good amount of time scouring the internet for a good form validation tutorial using Node.js. Since I was only able to find one decent tutorial I decide to write my own using express-validator, which is an express.js Continue reading Form Validation in Node.js with Express-Validator

A Sample App with Node.js, Express and MongoDB – Part 2

In my last post, we created a simple Employee database using Node, Express and MongoDB. In this tutorial, we’ll add the ability to edit and delete employees. Edit an Employee The first thing we need to do is add additional Continue reading A Sample App with Node.js, Express and MongoDB – Part 2