Tag Archives: Mongoose

Building A NodeJS Based REST API Using Mongoose Node Module


Building A Node.js Based REST API Using Mongoose Node Module
// C-Sharpcorner Latest Articles

In this article you will learn how to build Node.js based REST API using Mongoose Node Module.

Mongoose – NodeJS + MongoDB with Mongoose Tutorial


Mongoose – Node.js + MongoDB with Mongoose Tutorial
// Kogonuso
By Mohamed Sanaulla

Develope Node.js + MongoDB Application with Mongoose

In my previous post, I demonstrated how to perform CRUD (Create, Read, Update, Delete) operations using Node.js and MongoDB API. This tutorial explains how to easily develop Node.js and MongoDB application with Mongoose application by using the Mongoose API. This tutorial assumes that reader has the knowledge on Node.js and MongoDB and knows how to set up the environment for this tutorial. Those who want to read the basic tutorials on Node.js and MongoDB please refer Introduction to Node.js and How to Install MongoDB on Windows.

If you are interested in receiving more updates on Node.js and MongoDB tutorials, please subscribe here.

Here is the overview of the sections covered in this tutorial.

  1. Introduction to Mongoose API
  2. Connecting to MongoDB using Mongoose
  3. Create Schema and Model in Mongoose
  4. Inserting Data using Mongoose
  5. Querying the DB using Mongoose
  6. Updating existing documents
  7. Deleting existing documents
  8. Example Application

From Mongoose Models to a Real-time API with FeathersJS


via From Mongoose Models to a Real-time API with FeathersJS — All about FeathersJS — Medium.

A couple of months ago, I started working on a collaborative platform for people to efficiently work together on projects, with some cool integrations like Slack to notify users about important events from the Slack team, and Trello to keep an eye on the project realisation.

NodeJS, Express, MongoDB & Mongoose – First Application


In this blog, I talk about, what are the things I did to set it up running on Windows 7 PC. Here I am creating a simple application which uses Express Framework with NodeJS and Mongoose to connect with MongoDB. Installation is quite simple if you follow their manual. I could not install as I was behind […]

https://devpa.wordpress.com/2015/07/24/nodejs-express-mongodb-mongoose-first-application/

Mongoose gotchas


I am using Mongoose since last few months and while querying MongoDB in Node.js and getting results. While doing that I came up with some cases that made me scratch my head for more than couple hours just to figure our it is little ‘gotcha’ (may be because I did not read through all the docs of […]

http://harryjoy.me/2015/09/01/mongoose-gotchas/

Easily create a Mongoose Service for FeatherJS


via feathersjs/feathers-mongoose · GitHub.

Creating an Mongoose service is this simple:

var mongooseService = require('feathers-mongoose');
app.use('todos', mongooseService('todo', todoSchema, options));

See the Mongoose Schema Guide for more information on defining your schema.

Use MongoDB with a NodeJS Application on Heroku


via Use MongoDB with a Node.js Application on Heroku | Scotch.

On this blog post I’ll use a JS MVC ToDo List to show you step by step how to deploy an application using Node.js with Express and Mongoose on Heroku. There many ToDo app examples over there. All of them are basically client side source code, which means you have to create a server file in order to deploy it to Heroku. A good news is this file is already created, and the another good new is that server file can be used in almost all ToDo apps listed there. This file gives you the flexiblity to use any JavaScript MVC from your choice. I’m gonna use the one built by AngularJS framework.

Based on this MVC AngularJS ToDo List, I created a new github repository to be easier to deploy it on Heroku. If you’re unfamiliar with those technologies, now would be an excellent time to go through this great start. And for you, developer, who’s familiar with JavaScript, for sure it’ll not be hard. Go check it out!