How to Setup a NodeJS App with MongoDB using MongoJS

Introduction NoSQL databases and running your app’s backend with Javascript have both become increasingly popular. In this tutorial we will show you how to use NodeJS to connect with MongoDB using MongoJS to setup the backend for a simple web application. If you’re unfamiliar with these technologies, MongoDB is a NoSQL database technology and NodeJS … Continued

The Mongoose Cheat Sheet

Introduction If you’re looking to use a MongoDB database with your web application running on NodeJS you might be looking at which npm libraries which will allow you to easily interact with MongoDB. Mongoose and MongoJS are the two top choices for developers in this scenario. In this article we’ll give a quick cheat sheet … Continued

When to use MongoJS vs Mongoose

Introduction This article is for any users who are using or want to use Javascript to interact with a Mongo Database. If you’re running NodeJS and MongoDB together you’ll need to decide on a driver that will let you interact with Mongo from Javascript. The two most popular libraries for this are MongoJS and Mongoose … Continued

MongoDB Basic Command Line Cheat Sheet

Introduction If you’re just getting started with MongoDB or it’s been a while since you’ve used Mongo, you might need a reference for the most common MongoDB commands. This article will give a list of the most common tasks and the MongoDB command used to do execute it. Print it out, keep it on your … Continued

How to Pass Arguments from Mongo Command Line to Javascript

Introduction You can execute javascript files from mongo but it’s not intuitive to pass parameters to them. +++ This is the issue we’ll tackle. You might have a javascript that prints your default database stats but what if you wanted to pass it a variable to which database you wanted to print stats for instead … Continued

Keep in the know!

Subscribe to our emails and we’ll let you know what’s going on at ObjectRocket. We hate spam and make it easy to unsubscribe.