Knowing Node

Node.js, Express and Mongoose »

Building on previous tutorials, this one brings together Node.js, Express, MongoDB and Mongoose. Here you will see how to create a reusable persistent connection and use Mongoose to retrieve MongoDB data, and Express to output it to screen.

Leave a comment

Introducing the Express.js framework for node.js »

An introduction to Express, a web application framework for node.js. This tutorial covers installing Express globally, creating a template project, installing the dependencies and viewing the results in the browser.

Leave a comment

Knowing Node source code files on GitHub »

All of the source files for my Knowing Node series of tutorials on Node.js are now available on GitHub.

Leave a comment

Mongoose and Node.js tutorial »

How to use Mongoose with Node.js and MongoDB. Based on the code of a previous example using the native drivers, this tutorial shows how to install Mongoose for Node.js, introduces the basic concepts, and converts the MongoDB Native Driver code into Mongoose code.

2 comments

Node.js fundamentals: how to upgrade the Node.js version »

A quick tutorial showing you how to upgrade the version of Node.js running on your machine.

4 comments

How to get data from MongoDB into Node.js »

Most tutorials and info on the web show how to get data from MongoDB using Node.js, but don’t cover what to do with it. Here I cover how to use the Node.js native driver to retrieve data from a MongoDB database, and how to use return it to a website in a useful and usable way.

Leave a comment

How to create a MongoDB database »

Taking you through how to create a database in MongoDB, save some data to it and also return the data from. All in Ubuntu from the Mongo shell. It also covers some of the shifts in mindset needed when approaching from a “traditional” relational database.

1 comment

How to install MongoDB on Ubuntu for Node.js »

Part of the Knowing Node collection, this tutorial demonstrates how to install MongoDB on Ubuntu, test the installation using the MongoDB shell and run MongoDB as a service. It also covers how to install the native MongoDB drivers for Node.js.

1 comment

Creating an MVC framework for our Node.js page – getting ready for scalability »

This tutorial takes you through how to create and use a simple MVC architecture in Node.js. It shows you how to organise your code in a maintainable and scalable way, whilst introducing some of the core concepts behind Node.js.

3 comments

How to build a simple webpage in Node.js »

Building your first simple webpage in Node.js, I take a look at what is involved and break down all of the pieces.

1 comment