1. Starting with MongoDB, nodejs and mongoose - part I
Some time ago I started to work on a project that included nodejs and mongodb, I decided to write down as I learn for future reference and maybe others could find it useful as well. All source code for this post can be found in this git repository What you will need: 1. Nodejs and npm installed - you can download it from here , if you need to install nodejs on a linux distribution (e.g. Ubuntu, mint), there is a great explanation here 2. MongoDB installed - you can find how to do it here , if you don't want to install mongodb, you can create and use a sandbox db at MongoLab In this post I will assume that you know how to use node and npm and you have your package.json already ready, we will construct a site for locating airports around the world. We will start by adding some of our npm dependencies for this project, we are going to use: express - this will be our web framework to encapsulate all the web server capabilities and make things easier for us, don't wo