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.
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.
All of the source files for my Knowing Node series of tutorials on Node.js are now available on GitHub.
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.
A quick tutorial showing you how to upgrade the version of Node.js running on your machine.
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.
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.
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.
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.
Building your first simple webpage in Node.js, I take a look at what is involved and break down all of the pieces.